Add noscript-captcha class to QR if using noscript captcha.
This commit is contained in:
parent
19c595ed7c
commit
29fe77e7f6
@ -8,6 +8,7 @@ Captcha.v2 =
|
|||||||
if @noscript = Conf['Force Noscript Captcha'] or not $.hasClass doc, 'js-enabled'
|
if @noscript = Conf['Force Noscript Captcha'] or not $.hasClass doc, 'js-enabled'
|
||||||
@conn = new Connection null, "#{location.protocol}//www.google.com",
|
@conn = new Connection null, "#{location.protocol}//www.google.com",
|
||||||
token: (token) => @save true, token
|
token: (token) => @save true, token
|
||||||
|
$.addClass QR.nodes.el, 'noscript-captcha'
|
||||||
|
|
||||||
@captchas = []
|
@captchas = []
|
||||||
$.get 'captchas', [], ({captchas}) ->
|
$.get 'captchas', [], ({captchas}) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user