remove check threads menu item; we can restore it if actually requested
This commit is contained in:
parent
688f7edf2d
commit
448d2e84f7
@ -564,9 +564,6 @@ span.hide-announcement {
|
|||||||
#thread-watcher .refresh {
|
#thread-watcher .refresh {
|
||||||
padding: 0px 3px;
|
padding: 0px 3px;
|
||||||
}
|
}
|
||||||
#watcher-check-threads {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#thread-watcher .menu-button {
|
#thread-watcher .menu-button {
|
||||||
bottom: 1px;
|
bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,9 +74,6 @@ ThreadWatcher =
|
|||||||
for a in $$ 'a[title]', ThreadWatcher.list
|
for a in $$ 'a[title]', ThreadWatcher.list
|
||||||
$.open a.href
|
$.open a.href
|
||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
checkThreads: ->
|
|
||||||
return if $.hasClass @, 'disabled'
|
|
||||||
ThreadWatcher.fetchAllStatus()
|
|
||||||
pruneDeads: ->
|
pruneDeads: ->
|
||||||
return if $.hasClass @, 'disabled'
|
return if $.hasClass @, 'disabled'
|
||||||
for {boardID, threadID, data} in ThreadWatcher.getAll() when data.isDead
|
for {boardID, threadID, data} in ThreadWatcher.getAll() when data.isDead
|
||||||
@ -299,14 +296,6 @@ ThreadWatcher =
|
|||||||
textContent: 'Open all threads'
|
textContent: 'Open all threads'
|
||||||
refresh: -> (if ThreadWatcher.list.firstElementChild then $.rmClass else $.addClass) @el, 'disabled'
|
refresh: -> (if ThreadWatcher.list.firstElementChild then $.rmClass else $.addClass) @el, 'disabled'
|
||||||
|
|
||||||
entries.push
|
|
||||||
cb: ThreadWatcher.cb.checkThreads
|
|
||||||
entry:
|
|
||||||
el: $.el 'a',
|
|
||||||
id: 'watcher-check-threads'
|
|
||||||
textContent: 'Check threads'
|
|
||||||
refresh: -> (if $('div:not(.dead-thread)', ThreadWatcher.list) then $.rmClass else $.addClass) @el, 'disabled'
|
|
||||||
|
|
||||||
# `Prune 404'd threads` entry
|
# `Prune 404'd threads` entry
|
||||||
entries.push
|
entries.push
|
||||||
cb: ThreadWatcher.cb.pruneDeads
|
cb: ThreadWatcher.cb.pruneDeads
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user