Don't autohide QR while uploading is in progress. #222
This commit is contained in:
parent
8191b4c859
commit
19c9ce58a1
@ -636,11 +636,6 @@ QR =
|
|||||||
|
|
||||||
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
||||||
QR.cooldown.auto = QR.posts.length > 1
|
QR.cooldown.auto = QR.posts.length > 1
|
||||||
if Conf['Auto Hide QR'] and !QR.cooldown.auto
|
|
||||||
QR.hide()
|
|
||||||
if !QR.cooldown.auto and $.x 'ancestor::div[@id="qr"]', d.activeElement
|
|
||||||
# Unfocus the focused element if it is one within the QR and we're not auto-posting.
|
|
||||||
d.activeElement.blur()
|
|
||||||
|
|
||||||
post.lock()
|
post.lock()
|
||||||
|
|
||||||
@ -767,11 +762,17 @@ QR =
|
|||||||
|
|
||||||
lastPostToThread = not (do -> return true for p in QR.posts[1..] when p.thread is post.thread)
|
lastPostToThread = not (do -> return true for p in QR.posts[1..] when p.thread is post.thread)
|
||||||
|
|
||||||
unless Conf['Persistent QR'] or postsCount
|
if postsCount
|
||||||
QR.close()
|
|
||||||
else
|
|
||||||
post.rm()
|
post.rm()
|
||||||
QR.captcha.setup(d.activeElement is QR.nodes.status)
|
QR.captcha.setup(d.activeElement is QR.nodes.status)
|
||||||
|
else if Conf['Persistent QR']
|
||||||
|
post.rm()
|
||||||
|
if Conf['Auto Hide QR']
|
||||||
|
QR.hide()
|
||||||
|
else
|
||||||
|
QR.blur()
|
||||||
|
else
|
||||||
|
QR.close()
|
||||||
|
|
||||||
QR.cleanNotifications()
|
QR.cleanNotifications()
|
||||||
if Conf['Posting Success Notifications']
|
if Conf['Posting Success Notifications']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user