From 6cab2cfca7956f48288dc4b55e1a6e8b6c4436dc Mon Sep 17 00:00:00 2001 From: seaweedchan Date: Thu, 3 Oct 2013 16:47:45 -0700 Subject: [PATCH] Fix #194 --- CHANGELOG.md | 3 +++ LICENSE | 2 +- builds/4chan-X.user.js | 6 +++++- builds/crx/script.js | 6 +++++- src/Posting/QuickReply.coffee | 3 +++ 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 037be8b44..6a4798069 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +**MayhemYDG**: +- Minor Chrome 30 fix + ### v1.2.40 *2013-09-22* diff --git a/LICENSE b/LICENSE index c57dc1fd3..043dcdefe 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.40 - 2013-09-22 +* 4chan X - Version 1.2.40 - 2013-10-03 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 9ab0eb512..b88bf4a72 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -22,7 +22,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.2.40 - 2013-09-22 +* 4chan X - Version 1.2.40 - 2013-10-03 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -6188,6 +6188,10 @@ threadID: threadID, postID: postID }); + $.event('QRPostSuccessful_', { + threadID: threadID, + postID: postID + }); postsCount = QR.posts.length - 1; QR.cooldown.auto = postsCount && isReply; if (QR.cooldown.auto && QR.captcha.isEnabled && (captchasCount = QR.captcha.captchas.length) < 3 && captchasCount < postsCount) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 884469908..4d7d2872a 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.40 - 2013-09-22 +* 4chan X - Version 1.2.40 - 2013-10-03 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -6175,6 +6175,10 @@ threadID: threadID, postID: postID }); + $.event('QRPostSuccessful_', { + threadID: threadID, + postID: postID + }); postsCount = QR.posts.length - 1; QR.cooldown.auto = postsCount && isReply; if (QR.cooldown.auto && QR.captcha.isEnabled && (captchasCount = QR.captcha.captchas.length) < 3 && captchasCount < postsCount) { diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index cc8b96d88..1d84a4e9b 100755 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -1216,12 +1216,15 @@ QR = ThreadUpdater.postID = postID + + # Post/upload confirmed as successful. $.event 'QRPostSuccessful', { board: g.BOARD threadID postID } + $.event 'QRPostSuccessful_', {threadID, postID} # Enable auto-posting if we have stuff left to post, disable it otherwise. postsCount = QR.posts.length - 1