Attempt to fix QR not clearing successfully

This commit is contained in:
Zixaphir 2013-08-18 10:34:52 -07:00
parent 7fd7c249dc
commit 8570d5e63d
3 changed files with 7 additions and 3 deletions

View File

@ -5085,7 +5085,9 @@
d.activeElement.blur();
$.rmClass(QR.nodes.el, 'dump');
if (!Conf['Captcha Warning Notifications']) {
$.rmClass(QR.captcha.nodes.input, 'error');
if (QR.captcha.isEnabled) {
$.rmClass(QR.captcha.nodes.input, 'error');
}
}
if (Conf['QR Shortcut']) {
$.toggleClass($('.qr-shortcut'), 'disabled');

View File

@ -5093,7 +5093,9 @@
d.activeElement.blur();
$.rmClass(QR.nodes.el, 'dump');
if (!Conf['Captcha Warning Notifications']) {
$.rmClass(QR.captcha.nodes.input, 'error');
if (QR.captcha.isEnabled) {
$.rmClass(QR.captcha.nodes.input, 'error');
}
}
if (Conf['QR Shortcut']) {
$.toggleClass($('.qr-shortcut'), 'disabled');

View File

@ -99,7 +99,7 @@ QR =
d.activeElement.blur()
$.rmClass QR.nodes.el, 'dump'
unless Conf['Captcha Warning Notifications']
$.rmClass QR.captcha.nodes.input, 'error'
$.rmClass QR.captcha.nodes.input, 'error' if QR.captcha.isEnabled
if Conf['QR Shortcut']
$.toggleClass $('.qr-shortcut'), 'disabled'
new QR.post true