Add noscript-captcha class to QR if using noscript captcha.

This commit is contained in:
ccd0 2015-06-20 22:58:22 -07:00
parent 19c595ed7c
commit 29fe77e7f6

View File

@ -8,6 +8,7 @@ Captcha.v2 =
if @noscript = Conf['Force Noscript Captcha'] or not $.hasClass doc, 'js-enabled'
@conn = new Connection null, "#{location.protocol}//www.google.com",
token: (token) => @save true, token
$.addClass QR.nodes.el, 'noscript-captcha'
@captchas = []
$.get 'captchas', [], ({captchas}) ->