qr.auto -> qr.autoPost

This commit is contained in:
James Campos 2011-08-06 19:37:15 -07:00
parent 239bcc25c8
commit 10f3b8bbb2
2 changed files with 6 additions and 6 deletions

View File

@ -1222,7 +1222,7 @@
submit.value = 'Submit'; submit.value = 'Submit';
} }
if (qr.el && $('#auto', qr.el).checked) { if (qr.el && $('#auto', qr.el).checked) {
return qr.auto(); return qr.autoPost();
} }
} }
} }
@ -1251,7 +1251,7 @@
files = $('#files', qr.el); files = $('#files', qr.el);
return $.append(files, file); return $.append(files, file);
}, },
auto: function() { autoPost: function() {
var captcha, responseField; var captcha, responseField;
responseField = $('#recaptcha_response_field', qr.el); responseField = $('#recaptcha_response_field', qr.el);
if (!responseField.value && (captcha = qr.captcha.shift())) { if (!responseField.value && (captcha = qr.captcha.shift())) {
@ -1319,7 +1319,7 @@
$('#recaptcha_response_field', qr.el).value = ''; $('#recaptcha_response_field', qr.el).value = '';
$('#autohide', qr.el).checked = false; $('#autohide', qr.el).checked = false;
if (data.textContent === 'You seem to have mistyped the verification.') { if (data.textContent === 'You seem to have mistyped the verification.') {
qr.auto(); qr.autoPost();
} }
return; return;
} }

View File

@ -963,7 +963,7 @@ cooldown =
submit.disabled = false submit.disabled = false
submit.value = 'Submit' submit.value = 'Submit'
if qr.el and $('#auto', qr.el).checked if qr.el and $('#auto', qr.el).checked
qr.auto() qr.autoPost()
qr = qr =
# remove file # remove file
@ -992,7 +992,7 @@ qr =
files = $ '#files', qr.el files = $ '#files', qr.el
$.append files, file $.append files, file
auto: -> autoPost: ->
responseField = $ '#recaptcha_response_field', qr.el responseField = $ '#recaptcha_response_field', qr.el
if !responseField.value and captcha = qr.captcha.shift() if !responseField.value and captcha = qr.captcha.shift()
$('#recaptcha_challenge_field', qr.el).value = captcha.challenge $('#recaptcha_challenge_field', qr.el).value = captcha.challenge
@ -1070,7 +1070,7 @@ qr =
$('#recaptcha_response_field', qr.el).value = '' $('#recaptcha_response_field', qr.el).value = ''
$('#autohide', qr.el).checked = false $('#autohide', qr.el).checked = false
if data.textContent is 'You seem to have mistyped the verification.' if data.textContent is 'You seem to have mistyped the verification.'
qr.auto() qr.autoPost()
return return
if qr.el if qr.el