don't break when noscript blocks captcha
This commit is contained in:
parent
48f83502cd
commit
24c9809529
@ -2242,8 +2242,9 @@
|
|||||||
el = _ref2[_i];
|
el = _ref2[_i];
|
||||||
el.tabIndex = 1;
|
el.tabIndex = 1;
|
||||||
}
|
}
|
||||||
recaptcha = $('#recaptcha_response_field');
|
if (recaptcha = $('#recaptcha_response_field')) {
|
||||||
return $.bind(recaptcha, 'keydown', Recaptcha.listener);
|
return $.bind(recaptcha, 'keydown', Recaptcha.listener);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
listener: function(e) {
|
listener: function(e) {
|
||||||
if (e.keyCode === 8 && this.value === '') {
|
if (e.keyCode === 8 && this.value === '') {
|
||||||
|
|||||||
@ -1701,8 +1701,8 @@ Recaptcha =
|
|||||||
#hack to tab from comment straight to recaptcha
|
#hack to tab from comment straight to recaptcha
|
||||||
for el in $$ '#recaptcha_table a'
|
for el in $$ '#recaptcha_table a'
|
||||||
el.tabIndex = 1
|
el.tabIndex = 1
|
||||||
recaptcha = $ '#recaptcha_response_field'
|
if recaptcha = $ '#recaptcha_response_field' #NoScript
|
||||||
$.bind recaptcha, 'keydown', Recaptcha.listener
|
$.bind recaptcha, 'keydown', Recaptcha.listener
|
||||||
listener: (e) ->
|
listener: (e) ->
|
||||||
if e.keyCode is 8 and @value is ''
|
if e.keyCode is 8 and @value is ''
|
||||||
Recaptcha.reload()
|
Recaptcha.reload()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user