sage cooldown = 60s
This commit is contained in:
parent
4fac486794
commit
a43b5d79f3
@ -447,7 +447,10 @@
|
|||||||
}
|
}
|
||||||
recaptcha = $('input[name=recaptcha_response_field]', this);
|
recaptcha = $('input[name=recaptcha_response_field]', this);
|
||||||
if (recaptcha.value) {
|
if (recaptcha.value) {
|
||||||
return (_ref = $('#qr input[title=autohide]:not(:checked)')) != null ? _ref.click() : void 0;
|
if ((_ref = $('#qr input[title=autohide]:not(:checked)')) != null) {
|
||||||
|
_ref.click();
|
||||||
|
}
|
||||||
|
return g.sage = $('#qr input[name=email]').value === 'sage' ? true : false;
|
||||||
} else {
|
} else {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
span = n('span', {
|
span = n('span', {
|
||||||
@ -533,7 +536,7 @@
|
|||||||
$('textarea', qr).value = '';
|
$('textarea', qr).value = '';
|
||||||
$('input[name=recaptcha_response_field]', qr).value = '';
|
$('input[name=recaptcha_response_field]', qr).value = '';
|
||||||
submit = $('input[type=submit]', qr);
|
submit = $('input[type=submit]', qr);
|
||||||
submit.value = 30;
|
submit.value = g.sage ? 60 : 30;
|
||||||
submit.disabled = true;
|
submit.disabled = true;
|
||||||
window.setTimeout(cooldown, 1000);
|
window.setTimeout(cooldown, 1000);
|
||||||
auto = submit.previousSibling.lastChild;
|
auto = submit.previousSibling.lastChild;
|
||||||
|
|||||||
@ -291,6 +291,7 @@ formSubmit = (e) ->
|
|||||||
recaptcha = $('input[name=recaptcha_response_field]', this)
|
recaptcha = $('input[name=recaptcha_response_field]', this)
|
||||||
if recaptcha.value
|
if recaptcha.value
|
||||||
$('#qr input[title=autohide]:not(:checked)')?.click()
|
$('#qr input[title=autohide]:not(:checked)')?.click()
|
||||||
|
g.sage = if $('#qr input[name=email]').value is 'sage' then true else false
|
||||||
else
|
else
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
span = n 'span',
|
span = n 'span',
|
||||||
@ -360,7 +361,7 @@ iframeLoad = ->
|
|||||||
$('textarea', qr).value = ''
|
$('textarea', qr).value = ''
|
||||||
$('input[name=recaptcha_response_field]', qr).value = ''
|
$('input[name=recaptcha_response_field]', qr).value = ''
|
||||||
submit = $ 'input[type=submit]', qr
|
submit = $ 'input[type=submit]', qr
|
||||||
submit.value = 30
|
submit.value = if g.sage then 60 else 30
|
||||||
submit.disabled = true
|
submit.disabled = true
|
||||||
window.setTimeout cooldown, 1000
|
window.setTimeout cooldown, 1000
|
||||||
auto = submit.previousSibling.lastChild
|
auto = submit.previousSibling.lastChild
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user