0 cached captchas. 1 cached captcha. 2 cached catpchas.

This commit is contained in:
Nicolas Stepien 2012-01-24 09:33:05 +01:00
parent 2f8052163d
commit 8a4cdb7d09
2 changed files with 5 additions and 2 deletions

View File

@ -1451,7 +1451,9 @@
return this.input.value = null;
},
count: function(count) {
return this.input.placeholder = "Verification (" + count + " cached captchas)";
var s;
s = count === 1 ? '' : 's';
return this.input.placeholder = "Verification (" + count + " cached captcha" + s + ")";
},
reload: function() {
window.location = 'javascript:Recaptcha.reload()';

View File

@ -1072,7 +1072,8 @@ qr =
@img.src = "http://www.google.com/recaptcha/api/image?c=#{challenge}"
@input.value = null
count: (count) ->
@input.placeholder = "Verification (#{count} cached captchas)"
s = if count is 1 then '' else 's'
@input.placeholder = "Verification (#{count} cached captcha#{s})"
reload: ->
window.location = 'javascript:Recaptcha.reload()'
qr.captcha.input.focus()