diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 9e99bce9f..01fc8d736 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -4577,8 +4577,8 @@ $.addClass(el, 'shortcut'); return $.add(Header[icon ? 'icons' : 'stats'], el); }, - rmShortcut: function(el) { - return $.rm(el.parentElement); + rmShortcut: function(el, icon) { + return $.rm(icon ? el.parentElement : el); }, menuToggle: function(e) { return Header.menu.toggle(e, this, g); diff --git a/builds/crx/script.js b/builds/crx/script.js index cf9226331..a64f506e0 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4635,8 +4635,8 @@ $.addClass(el, 'shortcut'); return $.add(Header[icon ? 'icons' : 'stats'], el); }, - rmShortcut: function(el) { - return $.rm(el.parentElement); + rmShortcut: function(el, icon) { + return $.rm(icon ? el.parentElement : el); }, menuToggle: function(e) { return Header.menu.toggle(e, this, g); diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 0d08b3ce1..b9fc4ff06 100644 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -94,7 +94,7 @@ Header = stats: $.el 'span', id: 'a-stats' - + icons: $.el 'span', id: 'a-icons' @@ -124,12 +124,12 @@ Header = $.on btn, 'click', Header.toggleBoardList $.rm $ '#navtopright', fullBoardList - + shortcuts = $.el 'span', id: 'shortcuts' - + $.add shortcuts, [Header.stats, Header.icons] - + $.prepend d.body, shortcuts $.add boardList, fullBoardList @@ -383,11 +383,11 @@ Header = addShortcut: (el, icon) -> $.addClass el, 'shortcut' - + $.add Header[if icon then 'icons' else 'stats'], el - rmShortcut: (el) -> - $.rm el.parentElement + rmShortcut: (el, icon) -> + $.rm if icon then el.parentElement else el menuToggle: (e) -> Header.menu.toggle e, @, g