This commit is contained in:
James Campos 2011-09-03 11:13:34 -07:00
parent d6e08e3893
commit 814e696989
2 changed files with 3 additions and 2 deletions

View File

@ -1327,7 +1327,7 @@
} }
} }
$.set('captchas', captchas); $.set('captchas', captchas);
$('#cl', QR.qr).textContent = captchas.length; $('#cl', QR.qr).textContent = captchas.length + ' captchas';
return captcha; return captcha;
}, },
change: function() { change: function() {

View File

@ -961,6 +961,7 @@ cooldown =
qr.autoPost() qr.autoPost()
QR = QR =
#FIXME duplication everywhere
init: -> init: ->
g.callbacks.push (root) -> g.callbacks.push (root) ->
quote = $ 'a.quotejs + a', root quote = $ 'a.quotejs + a', root
@ -1032,7 +1033,7 @@ QR =
if captcha.time > cutoff if captcha.time > cutoff
break break
$.set 'captchas', captchas $.set 'captchas', captchas
$('#cl', QR.qr).textContent = captchas.length $('#cl', QR.qr).textContent = captchas.length + ' captchas'
captcha captcha
change: -> change: ->
$.unbind @, 'change', QR.change $.unbind @, 'change', QR.change