diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cda1925a..935f13f55 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor ### v1.11.9 +**v1.11.9.5** *(2015-08-26)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.5/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.5/builds/4chan-X-noupdate.crx "Chromium version")] +- Fix regression from v1.11.8.0 causing delete link not to work when Cooldown is off. + **v1.11.9.4** *(2015-08-22)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.4/builds/4chan-X-noupdate.crx "Chromium version")] - Archive list update: desustorage.org -> archive.horse. diff --git a/src/Menu/DeleteLink.coffee b/src/Menu/DeleteLink.coffee index c2507152e..49138116b 100755 --- a/src/Menu/DeleteLink.coffee +++ b/src/Menu/DeleteLink.coffee @@ -95,7 +95,7 @@ DeleteLink = else if msg = resDoc.getElementById 'errmsg' # error! new Notice 'warning', msg.textContent, 20 $.on link, 'click', DeleteLink.toggle if post.fullID is DeleteLink.post.fullID - if /\bwait\b/i.test msg.textContent + if Conf['Quick Reply'] and Conf['Cooldown'] and /\bwait\b/i.test(msg.textContent) DeleteLink.cooldown.start post, 5 DeleteLink.auto[+fileOnly][post.fullID] = true DeleteLink.nodes.links[+fileOnly].textContent = DeleteLink.linkText fileOnly diff --git a/src/Posting/QR.cooldown.coffee b/src/Posting/QR.cooldown.coffee index 26f7e7f10..8fae874d3 100644 --- a/src/Posting/QR.cooldown.coffee +++ b/src/Posting/QR.cooldown.coffee @@ -70,6 +70,7 @@ QR.cooldown = QR.cooldown.save [post.board.ID] secondsDeletion: (post) -> + return 0 unless Conf['Quick Reply'] and Conf['Cooldown'] cooldowns = QR.cooldown.data[post.board.ID] or {} for start, cooldown of cooldowns if !cooldown.delay? and cooldown.threadID is post.thread.ID and cooldown.postID is post.ID