diff --git a/LICENSE b/LICENSE index 0a0afbeb1..7410280ee 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.15 - 2013-06-14 +* 4chan X - Version 1.2.15 - 2013-06-15 * * 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 1d84c2751..48bad0dcc 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.15 - 2013-06-14 +* 4chan X - Version 1.2.15 - 2013-06-15 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -2327,6 +2327,7 @@ entry = _ref[_i]; this.insertEntry(entry, menu, data); } + $.addClass(lastToggledButton, 'active'); $.on(d, 'click', this.close); $.on(d, 'CloseMenu', this.close); $.add(Header.hover, menu); @@ -2379,6 +2380,7 @@ close = function() { $.rm(currentMenu); + $.rmClass(lastToggledButton, 'active'); currentMenu = null; lastToggledButton = null; return $.off(d, 'click CloseMenu', this.close); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index cc070d5a7..0e1e2ff2c 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.15 - 2013-06-14 +* 4chan X - Version 1.2.15 - 2013-06-15 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -2323,6 +2323,7 @@ entry = _ref[_i]; this.insertEntry(entry, menu, data); } + $.addClass(lastToggledButton, 'active'); $.on(d, 'click', this.close); $.on(d, 'CloseMenu', this.close); $.add(Header.hover, menu); @@ -2375,6 +2376,7 @@ close = function() { $.rm(currentMenu); + $.rmClass(lastToggledButton, 'active'); currentMenu = null; lastToggledButton = null; return $.off(d, 'click CloseMenu', this.close); diff --git a/builds/crx/script.js b/builds/crx/script.js index 8a3c12ec3..116bcdd92 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.15 - 2013-06-14 +* 4chan X - Version 1.2.15 - 2013-06-15 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -2329,6 +2329,7 @@ entry = _ref[_i]; this.insertEntry(entry, menu, data); } + $.addClass(lastToggledButton, 'active'); $.on(d, 'click', this.close); $.on(d, 'CloseMenu', this.close); $.add(Header.hover, menu); @@ -2381,6 +2382,7 @@ close = function() { $.rm(currentMenu); + $.rmClass(lastToggledButton, 'active'); currentMenu = null; lastToggledButton = null; return $.off(d, 'click CloseMenu', this.close); diff --git a/src/General/UI.coffee b/src/General/UI.coffee index 73fe1ecfe..fee438838 100644 --- a/src/General/UI.coffee +++ b/src/General/UI.coffee @@ -61,6 +61,8 @@ UI = do -> for entry in @entries @insertEntry entry, menu, data + $.addClass lastToggledButton, 'active' + $.on d, 'click', @close $.on d, 'CloseMenu', @close $.add Header.hover, menu @@ -114,6 +116,7 @@ UI = do -> close = -> $.rm currentMenu + $.rmClass lastToggledButton, 'active' currentMenu = null lastToggledButton = null $.off d, 'click CloseMenu', @close