Nuke 'Captcha Warning Notifications' option.
This commit is contained in:
parent
43798ddad3
commit
29afe88625
@ -450,11 +450,6 @@ Config =
|
|||||||
'Use the non-Javascript fallback captcha in the QR even if Javascript is enabled.'
|
'Use the non-Javascript fallback captcha in the QR even if Javascript is enabled.'
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
'Captcha Warning Notifications': [
|
|
||||||
true
|
|
||||||
'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'
|
|
||||||
1
|
|
||||||
]
|
|
||||||
'Auto-load captcha': [
|
'Auto-load captcha': [
|
||||||
false
|
false
|
||||||
'Automatically load the captcha in the QR even if your post is empty.'
|
'Automatically load the captcha in the QR even if your post is empty.'
|
||||||
|
|||||||
@ -1235,9 +1235,6 @@ input.field.tripped:not(:hover):not(:focus) {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1px 0 0;
|
margin: 1px 0 0;
|
||||||
}
|
}
|
||||||
.captcha-input.error:focus {
|
|
||||||
border-color: rgb(255,0,0) !important;
|
|
||||||
}
|
|
||||||
#qr-captcha-iframe {
|
#qr-captcha-iframe {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,7 +114,6 @@ Captcha.noscript =
|
|||||||
$.rm @nodes.iframe if @nodes.iframe
|
$.rm @nodes.iframe if @nodes.iframe
|
||||||
delete @nodes.iframe
|
delete @nodes.iframe
|
||||||
delete @occupied
|
delete @occupied
|
||||||
@unflag()
|
|
||||||
@beforeSetup()
|
@beforeSetup()
|
||||||
|
|
||||||
sync: (captchas=[]) ->
|
sync: (captchas=[]) ->
|
||||||
@ -163,16 +162,6 @@ Captcha.noscript =
|
|||||||
delete @submitCB
|
delete @submitCB
|
||||||
QR.error "Captcha Error: #{message}"
|
QR.error "Captcha Error: #{message}"
|
||||||
|
|
||||||
notify: (el) ->
|
|
||||||
if Conf['Captcha Warning Notifications'] and !d.hidden
|
|
||||||
QR.notify el
|
|
||||||
else
|
|
||||||
$.addClass @nodes.input, 'error'
|
|
||||||
$.one @nodes.input, 'keydown', @unflag.bind @
|
|
||||||
|
|
||||||
unflag: ->
|
|
||||||
$.rmClass @nodes.input, 'error'
|
|
||||||
|
|
||||||
clear: ->
|
clear: ->
|
||||||
return unless @captchas.length
|
return unless @captchas.length
|
||||||
$.forceSync 'captchas'
|
$.forceSync 'captchas'
|
||||||
|
|||||||
@ -163,9 +163,6 @@ Captcha.v2 =
|
|||||||
|
|
||||||
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
||||||
|
|
||||||
notify: (el) ->
|
|
||||||
QR.notify el
|
|
||||||
|
|
||||||
clear: ->
|
clear: ->
|
||||||
return unless @captchas.length
|
return unless @captchas.length
|
||||||
$.forceSync 'captchas'
|
$.forceSync 'captchas'
|
||||||
|
|||||||
@ -179,9 +179,7 @@ QR =
|
|||||||
el.removeAttribute 'style'
|
el.removeAttribute 'style'
|
||||||
if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent
|
if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent
|
||||||
QR.captcha.setup true
|
QR.captcha.setup true
|
||||||
QR.captcha.notify el
|
QR.notify el
|
||||||
else
|
|
||||||
QR.notify el
|
|
||||||
alert el.textContent if d.hidden and not QR.cooldown.auto
|
alert el.textContent if d.hidden and not QR.cooldown.auto
|
||||||
|
|
||||||
notify: (el) ->
|
notify: (el) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user