From 2307de39a75e572d51a63cbdeaf2060fc0ab9cb8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 22 Apr 2016 05:43:11 -0700 Subject: [PATCH] QR.close cleans notifications, so they must be added afterwards. #852 --- src/Posting/QR.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 216190944..339ec6366 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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