From eb22d553c3763679f836f7b53d5b8f9c024cdd6b Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 27 Dec 2011 04:37:58 +0100 Subject: [PATCH] Let the report button open multiple popups. Close #83 --- 4chan_x.user.js | 2 +- changelog | 1 + script.coffee | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 0e17ce38c..d391c0cc8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2701,7 +2701,7 @@ report: function() { var id, set, url; url = "http://sys.4chan.org/" + g.BOARD + "/imgboard.php?mode=report&no=" + ($.x('preceding-sibling::input', this).name); - id = "" + NAMESPACE + "popup"; + id = new Date().getTime(); 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/changelog b/changelog index daad97e12..00ded2b35 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,6 @@ master - mayhem + the report button can open multiple popups add omploader to the list of optional flavors (http://ompldr.org/upload?url1=) 2.23.7 diff --git a/script.coffee b/script.coffee index 73935d937..719ae450d 100644 --- a/script.coffee +++ b/script.coffee @@ -2102,7 +2102,7 @@ reportButton = $.on a, 'click', reportButton.report report: -> url = "http://sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{$.x('preceding-sibling::input', @).name}" - id = "#{NAMESPACE}popup" + id = new Date().getTime() set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200" window.open url, id, set