QR.close cleans notifications, so they must be added afterwards. #852

This commit is contained in:
ccd0 2016-04-22 05:43:11 -07:00
parent 3355b6dae5
commit 2307de39a7

View File

@ -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