Revert "Focus on captcha immediately after submitting post / starting autoposting. #628"
Caused v1 captcha to not reload when autodumping and new captcha needed. This reverts commit 0975276ca51e679fb1af014f250702faf5d4de1e.
This commit is contained in:
parent
f97d3fc171
commit
b9f0081ac4
@ -593,7 +593,6 @@ QR =
|
|||||||
$.forceSync 'cooldowns'
|
$.forceSync 'cooldowns'
|
||||||
if QR.cooldown.seconds
|
if QR.cooldown.seconds
|
||||||
QR.cooldown.auto = !QR.cooldown.auto
|
QR.cooldown.auto = !QR.cooldown.auto
|
||||||
QR.captcha.setup true if QR.cooldown.auto
|
|
||||||
QR.status()
|
QR.status()
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -636,7 +635,6 @@ QR =
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
||||||
wasAuto = QR.cooldown.auto
|
|
||||||
QR.cooldown.auto = QR.posts.length > 1
|
QR.cooldown.auto = QR.posts.length > 1
|
||||||
|
|
||||||
post.lock()
|
post.lock()
|
||||||
@ -696,9 +694,6 @@ QR =
|
|||||||
# Provide some feedback that we're starting to submit.
|
# Provide some feedback that we're starting to submit.
|
||||||
QR.status()
|
QR.status()
|
||||||
|
|
||||||
# Focus on captcha if more captchas are needed.
|
|
||||||
QR.captcha.setup true unless wasAuto
|
|
||||||
|
|
||||||
response: ->
|
response: ->
|
||||||
{req} = QR
|
{req} = QR
|
||||||
delete QR.req
|
delete QR.req
|
||||||
@ -769,6 +764,7 @@ QR =
|
|||||||
|
|
||||||
if postsCount
|
if postsCount
|
||||||
post.rm()
|
post.rm()
|
||||||
|
QR.captcha.setup(d.activeElement is QR.nodes.status)
|
||||||
else if Conf['Persistent QR']
|
else if Conf['Persistent QR']
|
||||||
post.rm()
|
post.rm()
|
||||||
if Conf['Auto Hide QR']
|
if Conf['Auto Hide QR']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user