From b2e104885775126656b9993d0d92d6d9900165cc Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 10 May 2013 16:11:05 -0700 Subject: [PATCH] Automatically close the dump list after posting all posts. --- builds/appchan-x.js | 1 + builds/appchan-x.user.js | 1 + builds/crx/script.js | 1 + src/Posting/QuickReply.coffee | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/builds/appchan-x.js b/builds/appchan-x.js index acba9b641..9bfb4cd70 100644 --- a/builds/appchan-x.js +++ b/builds/appchan-x.js @@ -7482,6 +7482,7 @@ index = QR.posts.indexOf(this); if (QR.posts.length === 1) { new QR.post(true); + $.rmClass(QR.nodes.el, 'dump'); } else if (this === QR.selected) { (QR.posts[index - 1] || QR.posts[index + 1]).select(); } diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 60ea99ae1..cb7bd2e27 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -7472,6 +7472,7 @@ index = QR.posts.indexOf(this); if (QR.posts.length === 1) { new QR.post(true); + $.rmClass(QR.nodes.el, 'dump'); } else if (this === QR.selected) { (QR.posts[index - 1] || QR.posts[index + 1]).select(); } diff --git a/builds/crx/script.js b/builds/crx/script.js index e5f7467ab..99f4ed70f 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -7468,6 +7468,7 @@ index = QR.posts.indexOf(this); if (QR.posts.length === 1) { new QR.post(true); + $.rmClass(QR.nodes.el, 'dump'); } else if (this === QR.selected) { (QR.posts[index - 1] || QR.posts[index + 1]).select(); } diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index d7ea0702c..e2050ab99 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -541,6 +541,7 @@ QR = index = QR.posts.indexOf @ if QR.posts.length is 1 new QR.post true + $.rmClass QR.nodes.el, 'dump' else if @ is QR.selected (QR.posts[index-1] or QR.posts[index+1]).select() QR.posts.splice index, 1 @@ -1172,7 +1173,6 @@ QR = QR.error err return - QR.cleanNotifications() h1 = $ 'h1', tmpDoc