Update captcha count when captchas expire.

This commit is contained in:
ccd0 2015-11-17 21:07:01 -08:00
parent d6e16c8eac
commit 712a159816

View File

@ -196,6 +196,9 @@ Captcha.v1 =
" (#{count} cached captchas)"
@nodes.input.placeholder = placeholder
@nodes.input.alt = count # For XTRM RICE.
clearTimeout @timer
if count
@timer = setTimeout @clear.bind(@), @captchas[0].timeout - Date.now()
reload: (focus) ->
# Recaptcha.should_focus = false: Hack to prevent the input from being focused