qr.auto -> qr.autoPost
This commit is contained in:
parent
239bcc25c8
commit
10f3b8bbb2
@ -1222,7 +1222,7 @@
|
||||
submit.value = 'Submit';
|
||||
}
|
||||
if (qr.el && $('#auto', qr.el).checked) {
|
||||
return qr.auto();
|
||||
return qr.autoPost();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1251,7 +1251,7 @@
|
||||
files = $('#files', qr.el);
|
||||
return $.append(files, file);
|
||||
},
|
||||
auto: function() {
|
||||
autoPost: function() {
|
||||
var captcha, responseField;
|
||||
responseField = $('#recaptcha_response_field', qr.el);
|
||||
if (!responseField.value && (captcha = qr.captcha.shift())) {
|
||||
@ -1319,7 +1319,7 @@
|
||||
$('#recaptcha_response_field', qr.el).value = '';
|
||||
$('#autohide', qr.el).checked = false;
|
||||
if (data.textContent === 'You seem to have mistyped the verification.') {
|
||||
qr.auto();
|
||||
qr.autoPost();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -963,7 +963,7 @@ cooldown =
|
||||
submit.disabled = false
|
||||
submit.value = 'Submit'
|
||||
if qr.el and $('#auto', qr.el).checked
|
||||
qr.auto()
|
||||
qr.autoPost()
|
||||
|
||||
qr =
|
||||
# remove file
|
||||
@ -992,7 +992,7 @@ qr =
|
||||
files = $ '#files', qr.el
|
||||
$.append files, file
|
||||
|
||||
auto: ->
|
||||
autoPost: ->
|
||||
responseField = $ '#recaptcha_response_field', qr.el
|
||||
if !responseField.value and captcha = qr.captcha.shift()
|
||||
$('#recaptcha_challenge_field', qr.el).value = captcha.challenge
|
||||
@ -1070,7 +1070,7 @@ qr =
|
||||
$('#recaptcha_response_field', qr.el).value = ''
|
||||
$('#autohide', qr.el).checked = false
|
||||
if data.textContent is 'You seem to have mistyped the verification.'
|
||||
qr.auto()
|
||||
qr.autoPost()
|
||||
return
|
||||
|
||||
if qr.el
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user