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,11 +2422,12 @@
},
reloaded: function(e) {
var dialog, target;
target = e.target;
if (dialog = $('#qr')) {
$('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value;
return $('input[name=recaptcha_challenge_field]', dialog).value = target.value;
if (!(dialog = $('#qr'))) {
return;
}
target = e.target;
$('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value;
return $('input[name=recaptcha_challenge_field]', dialog).value = target.value;
}
};
nodeInserted = function(e) {

View File

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