From 278d4f6abcd77258be32cfe82e39aaedb034f97b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 29 Apr 2011 02:44:48 +0200 Subject: [PATCH] Fix typo and update after connection lost. Close #35 --- 4chan_x.js | 5 ++--- script.coffee | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index fc306ea8e..9acb54092 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1376,14 +1376,13 @@ timer = $('#timer'); n = Number(timer.textContent); n += 1; - timer.textContent = n; if (n === 10) { - updater.r.abort(); count = $('#count'); - counte.textContent = 'retry'; + count.textContent = 'retry'; count.className = ''; n = 0; } + timer.textContent = n; if (n === 0) { return updater.update(); } diff --git a/script.coffee b/script.coffee index e29a4a430..cdef030d0 100644 --- a/script.coffee +++ b/script.coffee @@ -1085,15 +1085,15 @@ updater = timer = $ '#timer' n = Number timer.textContent n += 1 - timer.textContent = n if n == 10 - updater.r.abort() count = $ '#count' - counte.textContent = 'retry' + count.textContent = 'retry' count.className = '' n = 0 + timer.textContent = n + if n == 0 updater.update()