This commit is contained in:
Nicolas Stepien 2012-09-18 18:44:56 +02:00
parent b6f3466624
commit dda4b91448
2 changed files with 2 additions and 2 deletions

View File

@ -1803,7 +1803,7 @@
$.add(el, err); $.add(el, err);
} }
QR.open(); QR.open();
if (qr.captchaIsEnabled && /captcha|verification/i.test(el.textContent)) { if (QR.captchaIsEnabled && /captcha|verification/i.test(el.textContent)) {
$('[autocomplete]', QR.el).focus(); $('[autocomplete]', QR.el).focus();
} }
if (d.hidden || d.oHidden || d.mozHidden || d.webkitHidden) { if (d.hidden || d.oHidden || d.mozHidden || d.webkitHidden) {

View File

@ -1392,7 +1392,7 @@ QR =
el.innerHTML = null el.innerHTML = null
$.add el, err $.add el, err
QR.open() QR.open()
if qr.captchaIsEnabled and /captcha|verification/i.test el.textContent if QR.captchaIsEnabled and /captcha|verification/i.test el.textContent
# Focus the captcha input on captcha error. # Focus the captcha input on captcha error.
$('[autocomplete]', QR.el).focus() $('[autocomplete]', QR.el).focus()
alert el.textContent if d.hidden or d.oHidden or d.mozHidden or d.webkitHidden alert el.textContent if d.hidden or d.oHidden or d.mozHidden or d.webkitHidden