diff --git a/CHANGELOG.md b/CHANGELOG.md index 467f83ed0..471d42034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +seaweedchan: +- Fix QR not clearing on submit with Posting Success Notifications disabled + ### 1.1.7 - 2013-05-01 seaweedchan: - External image embedding diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 1006be9bb..3e2882895 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -5797,9 +5797,9 @@ QR.error(err); return; } + QR.cleanNotifications(); + h1 = $('h1', tmpDoc); if (Conf['Posting Success Notifications']) { - h1 = $('h1', tmpDoc); - QR.cleanNotifications(); QR.notifications.push(new Notification('success', h1.textContent, 5)); } QR.persona.set(post); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 87664b5a7..a0c297cee 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5818,9 +5818,9 @@ QR.error(err); return; } + QR.cleanNotifications(); + h1 = $('h1', tmpDoc); if (Conf['Posting Success Notifications']) { - h1 = $('h1', tmpDoc); - QR.cleanNotifications(); QR.notifications.push(new Notification('success', h1.textContent, 5)); } QR.persona.set(post); diff --git a/builds/crx/script.js b/builds/crx/script.js index 9821f4d7b..5cff02046 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5796,9 +5796,9 @@ QR.error(err); return; } + QR.cleanNotifications(); + h1 = $('h1', tmpDoc); if (Conf['Posting Success Notifications']) { - h1 = $('h1', tmpDoc); - QR.cleanNotifications(); QR.notifications.push(new Notification('success', h1.textContent, 5)); } QR.persona.set(post); diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index 2400b82f3..b83ceda5e 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -1102,10 +1102,12 @@ QR = QR.status() QR.error err return + + QR.cleanNotifications() + h1 = $ 'h1', tmpDoc + if Conf['Posting Success Notifications'] - h1 = $ 'h1', tmpDoc - QR.cleanNotifications() QR.notifications.push new Notification 'success', h1.textContent, 5 QR.persona.set post