From 312f0bcd34f7c43b5a8052dafdc068592ba165f6 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 24 Nov 2011 01:18:27 +0100 Subject: [PATCH] Fix mistake --- 4chan_x.user.js | 4 ++-- script.coffee | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c991164e6..64de47864 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2339,10 +2339,10 @@ e.preventDefault(); id = this.hash.slice(1); if (/\binlined\b/.test(this.className)) { - quoteInline.rm(this, id); + $.rm = $.x("following::*[@id='i" + id + "']", this); } else { if ($.x("ancestor::*[@id='" + id + "']", this)) return; - $.rm = $.x("following::*[@id='i" + id + "']", this); + quoteInline.add(this, id); } return this.classList.toggle('inlined'); }, diff --git a/script.coffee b/script.coffee index 2f479cc37..ed4a4b731 100644 --- a/script.coffee +++ b/script.coffee @@ -1803,11 +1803,11 @@ quoteInline = e.preventDefault() id = @hash[1..] if /\binlined\b/.test @className - quoteInline.rm @, id - else - return if $.x("ancestor::*[@id='#{id}']", @) # remove the corresponding table or loading td $.rm = $.x "following::*[@id='i#{id}']", @ + else + return if $.x("ancestor::*[@id='#{id}']", @) + quoteInline.add @, id @classList.toggle 'inlined' add: (q, id) ->