Add captcha cache count in the input's alt for XTRM RICE. @KWeEabo0o

This commit is contained in:
Nicolas Stepien 2012-01-28 20:25:42 +01:00
parent f30cc383ec
commit e7e0e73236
2 changed files with 3 additions and 1 deletions

View File

@ -1521,7 +1521,8 @@
count: function(count) {
var s;
s = count === 1 ? '' : 's';
return this.input.placeholder = "Verification (" + count + " cached captcha" + s + ")";
this.input.placeholder = "Verification (" + count + " cached captcha" + s + ")";
return this.input.alt = count;
},
reload: function(focus) {
window.location = 'javascript:Recaptcha.reload()';

View File

@ -1123,6 +1123,7 @@ qr =
count: (count) ->
s = if count is 1 then '' else 's'
@input.placeholder = "Verification (#{count} cached captcha#{s})"
@input.alt = count # For XTRM RICE.
reload: (focus) ->
window.location = 'javascript:Recaptcha.reload()'
# Focus if we meant to.