QR.close cleans notifications, so they must be added afterwards. #852
This commit is contained in:
parent
3355b6dae5
commit
2307de39a7
@ -754,10 +754,6 @@ QR =
|
||||
return
|
||||
|
||||
h1 = $ 'h1', resDoc
|
||||
QR.cleanNotifications()
|
||||
|
||||
if Conf['Posting Success Notifications']
|
||||
QR.notifications.push new Notice 'success', h1.textContent, 5
|
||||
|
||||
[_, threadID, postID] = h1.nextSibling.textContent.match /thread:(\d+),no:(\d+)/
|
||||
postID = +postID
|
||||
@ -784,6 +780,10 @@ QR =
|
||||
post.rm()
|
||||
QR.captcha.setup(d.activeElement is QR.nodes.status)
|
||||
|
||||
QR.cleanNotifications()
|
||||
if Conf['Posting Success Notifications']
|
||||
QR.notifications.push new Notice 'success', h1.textContent, 5
|
||||
|
||||
QR.cooldown.add threadID, postID
|
||||
|
||||
URL = if threadID is postID # new thread
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user