CoffeeScript bug?
This commit is contained in:
parent
cee2fe7f02
commit
093644b720
@ -6056,7 +6056,7 @@
|
|||||||
captcha: {
|
captcha: {
|
||||||
init: function() {
|
init: function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (__indexOf.call(d.cookie, 'pass_enabled=') >= 0) {
|
if (d.cookie.indexOf('pass_enabled=1;') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(this.isEnabled = !!$.id('captchaFormPart'))) {
|
if (!(this.isEnabled = !!$.id('captchaFormPart'))) {
|
||||||
|
|||||||
@ -456,7 +456,9 @@ QR =
|
|||||||
|
|
||||||
captcha:
|
captcha:
|
||||||
init: ->
|
init: ->
|
||||||
return if 'pass_enabled=' in d.cookie
|
# XXX CoffeeScrit's indexOf doesn't wanna work here ???
|
||||||
|
# return if 'pass_enabled=1;' in d.cookie
|
||||||
|
return if d.cookie.indexOf('pass_enabled=1;') >= 0
|
||||||
return unless @isEnabled = !!$.id 'captchaFormPart'
|
return unless @isEnabled = !!$.id 'captchaFormPart'
|
||||||
if $.id 'recaptcha_challenge_field_holder'
|
if $.id 'recaptcha_challenge_field_holder'
|
||||||
@ready()
|
@ready()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user