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.'
|
||||
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': [
|
||||
false
|
||||
'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%;
|
||||
margin: 1px 0 0;
|
||||
}
|
||||
.captcha-input.error:focus {
|
||||
border-color: rgb(255,0,0) !important;
|
||||
}
|
||||
#qr-captcha-iframe {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -114,7 +114,6 @@ Captcha.noscript =
|
||||
$.rm @nodes.iframe if @nodes.iframe
|
||||
delete @nodes.iframe
|
||||
delete @occupied
|
||||
@unflag()
|
||||
@beforeSetup()
|
||||
|
||||
sync: (captchas=[]) ->
|
||||
@ -163,16 +162,6 @@ Captcha.noscript =
|
||||
delete @submitCB
|
||||
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: ->
|
||||
return unless @captchas.length
|
||||
$.forceSync 'captchas'
|
||||
|
||||
@ -163,9 +163,6 @@ Captcha.v2 =
|
||||
|
||||
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
||||
|
||||
notify: (el) ->
|
||||
QR.notify el
|
||||
|
||||
clear: ->
|
||||
return unless @captchas.length
|
||||
$.forceSync 'captchas'
|
||||
|
||||
@ -179,9 +179,7 @@ QR =
|
||||
el.removeAttribute 'style'
|
||||
if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent
|
||||
QR.captcha.setup true
|
||||
QR.captcha.notify el
|
||||
else
|
||||
QR.notify el
|
||||
QR.notify el
|
||||
alert el.textContent if d.hidden and not QR.cooldown.auto
|
||||
|
||||
notify: (el) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user