Minor captcha fix.
This commit is contained in:
parent
82ba43d7b6
commit
130462f3f9
@ -87,7 +87,7 @@ QR.captcha =
|
|||||||
@reload()
|
@reload()
|
||||||
$.set 'captchas', @captchas
|
$.set 'captchas', @captchas
|
||||||
clear: ->
|
clear: ->
|
||||||
return unless @captchas.length
|
return unless @captchas # not loaded yet.
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
for captcha, i in @captchas
|
for captcha, i in @captchas
|
||||||
break if captcha.timeout > now
|
break if captcha.timeout > now
|
||||||
@ -105,7 +105,7 @@ QR.captcha =
|
|||||||
@nodes.input.value = null
|
@nodes.input.value = null
|
||||||
@clear()
|
@clear()
|
||||||
count: ->
|
count: ->
|
||||||
count = @captchas.length
|
count = if @captchas then @captchas.length else 0
|
||||||
@nodes.input.placeholder = switch count
|
@nodes.input.placeholder = switch count
|
||||||
when 0
|
when 0
|
||||||
'Verification (Shift + Enter to cache)'
|
'Verification (Shift + Enter to cache)'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user