Enable autoposting when submitting a captcha while on cooldown.

This commit is contained in:
Nicolas Stepien 2011-12-10 21:30:49 +01:00
parent 0baa452a01
commit f0aa40597c
3 changed files with 5 additions and 0 deletions

View File

@ -1552,6 +1552,7 @@
captchaKeydown: function(e) {
var captchas;
if (!(e.keyCode === 13 && this.value)) return;
if (cooldown.duration) $('#auto', qr.el).checked = true;
captchas = $.get('captchas', []);
captchas.push({
challenge: qr.challenge,

View File

@ -1,4 +1,6 @@
master
- mayhem
enable autoposting when submitting a captcha while on cooldown
2.23.1
- mayhem

View File

@ -1164,6 +1164,8 @@ qr =
captchaKeydown: (e) ->
return unless e.keyCode is 13 and @value #enter, captcha filled
$('#auto', qr.el).checked = true if cooldown.duration #enable autoposting
captchas = $.get 'captchas', []
captchas.push
challenge: qr.challenge