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.count($.get('captchas', []).length);
this.load(); this.load();
return window.location = 'javascript:Recaptcha.focus_response_field=function(){}'; return window.location = 'javascript:(function(){Recaptcha.focus_response_field=function(){}})()';
}, },
save: function() { save: function() {
var captchas, length, now, response; var captchas, length, now, response;

View File

@ -1058,7 +1058,7 @@ qr =
@count $.get('captchas', []).length @count $.get('captchas', []).length
@load() @load()
# prevent original captcha input from being focused on reload # 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: -> save: ->
return unless response = @input.value return unless response = @input.value
captchas = $.get 'captchas', [] captchas = $.get 'captchas', []