Captcha should reload if 'Post on Captcha Completion' will start dumping.
This commit is contained in:
parent
75a1c64edc
commit
a289289c18
@ -122,8 +122,8 @@ QR.captcha =
|
|||||||
null
|
null
|
||||||
|
|
||||||
save: (pasted) ->
|
save: (pasted) ->
|
||||||
reload = QR.cooldown.auto and @needed()
|
|
||||||
$.forceSync 'captchas'
|
$.forceSync 'captchas'
|
||||||
|
reload = (QR.cooldown.auto or Conf['Post on Captcha Completion']) and @needed()
|
||||||
@captchas.push
|
@captchas.push
|
||||||
response: $('textarea', @nodes.container).value
|
response: $('textarea', @nodes.container).value
|
||||||
timeout: (if pasted then @setupTime else Date.now()) + 2 * $.MINUTE
|
timeout: (if pasted then @setupTime else Date.now()) + 2 * $.MINUTE
|
||||||
@ -132,13 +132,14 @@ QR.captcha =
|
|||||||
|
|
||||||
if reload
|
if reload
|
||||||
@shouldFocus = true
|
@shouldFocus = true
|
||||||
return @reload()
|
@reload()
|
||||||
|
|
||||||
if pasted
|
|
||||||
@destroy()
|
|
||||||
else
|
else
|
||||||
@timeouts.destroy ?= setTimeout @destroy.bind(@), 3 * $.SECOND
|
if pasted
|
||||||
QR.nodes.status.focus()
|
@destroy()
|
||||||
|
else
|
||||||
|
@timeouts.destroy ?= setTimeout @destroy.bind(@), 3 * $.SECOND
|
||||||
|
QR.nodes.status.focus()
|
||||||
|
|
||||||
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
||||||
|
|
||||||
clear: ->
|
clear: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user