trying to post during cooldown will enable auto-post
This commit is contained in:
parent
986329dab0
commit
9b826fb514
@ -2272,7 +2272,11 @@
|
||||
},
|
||||
listener: function(e) {
|
||||
if (e.keyCode === 8 && this.value === '') {
|
||||
return Recaptcha.reload();
|
||||
Recaptcha.reload();
|
||||
}
|
||||
if (e.keyCode === 13 && cooldown.duration) {
|
||||
$('#auto').checked = true;
|
||||
return qr.autohide.set();
|
||||
}
|
||||
},
|
||||
reload: function() {
|
||||
|
||||
@ -1717,8 +1717,11 @@ Recaptcha =
|
||||
if recaptcha = $ '#recaptcha_response_field' #NoScript
|
||||
$.bind recaptcha, 'keydown', Recaptcha.listener
|
||||
listener: (e) ->
|
||||
if e.keyCode is 8 and @value is ''
|
||||
if e.keyCode is 8 and @value is '' # backspace to reload
|
||||
Recaptcha.reload()
|
||||
if e.keyCode is 13 and cooldown.duration # press enter to enable auto-post if cooldown is still running
|
||||
$('#auto').checked = true
|
||||
qr.autohide.set()
|
||||
reload: ->
|
||||
window.location = 'javascript:Recaptcha.reload()'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user