diff --git a/4chan_x.coffee b/4chan_x.coffee
index 9c9c2d5f1..9dbd2a1bd 100644
--- a/4chan_x.coffee
+++ b/4chan_x.coffee
@@ -871,7 +871,9 @@ updateTime = ->
time = 0
g.req.abort()
updateNow()
- span.textContent = time
+ $("#updater #count").textContent = 'retry'
+ else
+ span.textContent = time
updateTitle = ->
len = g.replies.length
@@ -901,8 +903,9 @@ updateNow = ->
url = location.href + '?' + new Date().getTime() # fool the cache
g.req = request url, updateCallback
count = $ '#updater #count'
- count.textContent = 'Updating...'
+ count.textContent = ''
count.className = ''
+ $("#updater #timer").textContent = 0
updaterMake = ->
html = "
Thread Updater
"
diff --git a/4chan_x.js b/4chan_x.js
index 3b41c4b56..e21f6a0b1 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -1190,13 +1190,15 @@
span = $('#updater #timer');
time = Number(span.textContent);
if (++time === 0) {
- updateNow();
+ return updateNow();
} else if (time > 10) {
time = 0;
g.req.abort();
updateNow();
+ return $("#updater #count").textContent = 'retry';
+ } else {
+ return span.textContent = time;
}
- return span.textContent = time;
};
updateTitle = function() {
var len;
@@ -1232,8 +1234,9 @@
url = location.href + '?' + new Date().getTime();
g.req = request(url, updateCallback);
count = $('#updater #count');
- count.textContent = 'Updating...';
- return count.className = '';
+ count.textContent = '';
+ count.className = '';
+ return $("#updater #timer").textContent = 0;
};
updaterMake = function() {
var autoG, autoL, div, html, interval;