From e38b22cc88a78acd6d3eabd66b6a8ffa1137fa29 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 27 Aug 2011 20:44:35 +0200 Subject: [PATCH] Make it work with inlined quotes. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dd1b2caa7..e55d50fb0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2385,7 +2385,7 @@ }, report: function() { var id, set, url; - url = "http://sys.4chan.org/" + g.BOARD + "/imgboard.php?mode=report&no=" + this.parentNode.id; + url = "http://sys.4chan.org/" + g.BOARD + "/imgboard.php?mode=report&no=" + this.previousElementSibling.childNodes[1].textContent; id = "" + NAMESPACE + "popup"; set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200"; return window.open(url, id, set); diff --git a/script.coffee b/script.coffee index 336a68a4f..765270561 100644 --- a/script.coffee +++ b/script.coffee @@ -1857,7 +1857,7 @@ reportButton = $.after span, $.tn(' ') $.bind a, 'click', reportButton.report report: -> - url = "http://sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{@parentNode.id}" + url = "http://sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{@previousElementSibling.childNodes[1].textContent}" id = "#{NAMESPACE}popup" set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200" window.open url, id, set