less indentation

This commit is contained in:
James Campos 2011-07-20 01:56:01 -07:00
parent e3c4b66918
commit eefb5f0ffa
2 changed files with 8 additions and 7 deletions

View File

@ -2422,12 +2422,13 @@
}, },
reloaded: function(e) { reloaded: function(e) {
var dialog, target; var dialog, target;
if (!(dialog = $('#qr'))) {
return;
}
target = e.target; target = e.target;
if (dialog = $('#qr')) {
$('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value; $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value;
return $('input[name=recaptcha_challenge_field]', dialog).value = target.value; return $('input[name=recaptcha_challenge_field]', dialog).value = target.value;
} }
}
}; };
nodeInserted = function(e) { nodeInserted = function(e) {
var callback, target, _i, _len, _ref2, _results; var callback, target, _i, _len, _ref2, _results;

View File

@ -1836,8 +1836,8 @@ Recaptcha =
reload: -> reload: ->
window.location = 'javascript:Recaptcha.reload()' window.location = 'javascript:Recaptcha.reload()'
reloaded: (e) -> reloaded: (e) ->
return unless dialog = $ '#qr'
{target} = e {target} = e
if dialog = $ '#qr'
$('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value
$('input[name=recaptcha_challenge_field]', dialog).value = target.value $('input[name=recaptcha_challenge_field]', dialog).value = target.value