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

View File

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

View File

@ -99,7 +99,7 @@ QR =
d.activeElement.blur() d.activeElement.blur()
$.rmClass QR.nodes.el, 'dump' $.rmClass QR.nodes.el, 'dump'
unless Conf['Captcha Warning Notifications'] 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'] if Conf['QR Shortcut']
$.toggleClass $('.qr-shortcut'), 'disabled' $.toggleClass $('.qr-shortcut'), 'disabled'
new QR.post true new QR.post true