Firefox fix.

This commit is contained in:
Nicolas Stepien 2012-01-21 22:36:32 +01:00
parent 0055c6d164
commit a5b2e1d265
2 changed files with 2 additions and 2 deletions

View File

@ -1427,7 +1427,7 @@
});
this.count($.get('captchas', []).length);
this.load();
return window.location = 'javascript:Recaptcha.focus_response_field=function(){}';
return window.location = 'javascript:(function(){Recaptcha.focus_response_field=function(){}})()';
},
save: function() {
var captchas, length, now, response;

View File

@ -1058,7 +1058,7 @@ qr =
@count $.get('captchas', []).length
@load()
# prevent original captcha input from being focused on reload
window.location = 'javascript:Recaptcha.focus_response_field=function(){}'
window.location = 'javascript:(function(){Recaptcha.focus_response_field=function(){}})()'
save: ->
return unless response = @input.value
captchas = $.get 'captchas', []