Prevent noscript captcha submission when no checkboxes are checked.
Google gives an obnoxious error page instead of reloading in this case.
This commit is contained in:
parent
d8ba3e1708
commit
cde281cdf6
@ -55,6 +55,10 @@ Captcha.fixes =
|
|||||||
$.addStyle @cssNoscript
|
$.addStyle @cssNoscript
|
||||||
@addLabels()
|
@addLabels()
|
||||||
$.on d, 'keydown', @keybinds.bind(@)
|
$.on d, 'keydown', @keybinds.bind(@)
|
||||||
|
$.on $('.fbc-imageselect-challenge > form'), 'submit', (e) =>
|
||||||
|
n = 0
|
||||||
|
n++ for checkbox in @images when checkbox.checked
|
||||||
|
e.preventDefault() if n is 0
|
||||||
|
|
||||||
fixImages: ->
|
fixImages: ->
|
||||||
@images = $$ '.rc-imageselect-target > div'
|
@images = $$ '.rc-imageselect-target > div'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user