From ab8977fb6ec7d575f1f575276ba294a25a27909b Mon Sep 17 00:00:00 2001 From: seaweedchan Date: Sat, 18 May 2013 03:43:43 -0700 Subject: [PATCH] Restrict click event to link --- LICENSE | 2 +- builds/4chan-X.js | 4 ++-- builds/4chan-X.user.js | 4 ++-- builds/crx/script.js | 4 ++-- src/Posting/QuickReply.coffee | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/LICENSE b/LICENSE index 311e31488..d427c23c8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.6 - 2013-05-17 +* 4chan X - Version 1.2.6 - 2013-05-18 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 8c89460d6..8e4aa9601 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.6 - 2013-05-17 +* 4chan X - Version 1.2.6 - 2013-05-18 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4670,7 +4670,7 @@ title: title, className: "qr-link" }); - $.on(link, 'click', function() { + $.on(link.firstChild, 'click', function() { $.event('CloseMenu'); QR.open(); QR.nodes.com.focus(); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index c8a80f604..3900a7463 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.6 - 2013-05-17 +* 4chan X - Version 1.2.6 - 2013-05-18 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4654,7 +4654,7 @@ title: title, className: "qr-link" }); - $.on(link, 'click', function() { + $.on(link.firstChild, 'click', function() { $.event('CloseMenu'); QR.open(); QR.nodes.com.focus(); diff --git a/builds/crx/script.js b/builds/crx/script.js index 69c5ce92c..c65da1985 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.6 - 2013-05-17 +* 4chan X - Version 1.2.6 - 2013-05-18 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4656,7 +4656,7 @@ title: title, className: "qr-link" }); - $.on(link, 'click', function() { + $.on(link.firstChild, 'click', function() { $.event('CloseMenu'); QR.open(); QR.nodes.com.focus(); diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index bbf100342..274190b52 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -40,7 +40,7 @@ QR = innerHTML: "#{title = if g.VIEW is 'thread' then 'Reply to Thread' else 'Start a Thread'}" title: title className: "qr-link" - $.on link, 'click', -> + $.on link.firstChild, 'click', -> $.event 'CloseMenu' QR.open() QR.nodes.com.focus()