diff --git a/src/General/css/style.css b/src/General/css/style.css
index c4dc1d210..a94c6ee3d 100755
--- a/src/General/css/style.css
+++ b/src/General/css/style.css
@@ -557,10 +557,16 @@ span.hide-announcement {
padding-left: 3px;
overflow: hidden;
white-space: nowrap;
- min-width: 136px;
+ min-width: 146px;
max-height: 92%;
overflow-y: auto;
}
+#thread-watcher .refresh {
+ padding: 0px 3px;
+}
+#watcher-check-threads {
+ display: none;
+}
#thread-watcher .menu-button {
bottom: 1px;
}
@@ -598,7 +604,7 @@ span.hide-announcement {
#thread-watcher a {
text-decoration: none;
}
-#thread-watcher .move>.close {
+#thread-watcher .move > .close {
position: absolute;
right: 0px;
top: 0px;
diff --git a/src/General/html/Monitoring/ThreadWatcher.html b/src/General/html/Monitoring/ThreadWatcher.html
index 14e8e6a5e..373709e72 100755
--- a/src/General/html/Monitoring/ThreadWatcher.html
+++ b/src/General/html/Monitoring/ThreadWatcher.html
@@ -1,2 +1,7 @@
-
+
+ Thread Watcher
+
+
+
×
+
diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee
index 4a4cf8e30..7c84caae5 100755
--- a/src/Monitoring/ThreadWatcher.coffee
+++ b/src/Monitoring/ThreadWatcher.coffee
@@ -18,7 +18,8 @@ ThreadWatcher =
$.on d, 'QRPostSuccessful', @cb.post
$.on sc, 'click', @toggleWatcher
- $.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
+ $.on $('.move > .refresh', ThreadWatcher.dialog), 'click', @fetchAllStatus
+ $.on $('.move > .close', ThreadWatcher.dialog), 'click', @toggleWatcher
$.on d, '4chanXInitFinished', @ready
switch g.VIEW
@@ -117,13 +118,13 @@ ThreadWatcher =
fetching: 0
fetchAllStatus: ->
return unless (threads = ThreadWatcher.getAll()).length
- ThreadWatcher.status.textContent = '...'
for thread in threads
ThreadWatcher.fetchStatus thread
return
fetchStatus: ({boardID, threadID, data}) ->
return if data.isDead
{fetchCount} = ThreadWatcher
+ ThreadWatcher.status.textContent = '...' if fetchCount.fetching is 0
fetchCount.fetching++
$.ajax "//a.4cdn.org/#{boardID}/thread/#{threadID}.json",
onloadend: ->
@@ -298,6 +299,7 @@ ThreadWatcher =
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'