Fix ThreadUpdater not adding itself back on navigate.
This commit is contained in:
parent
0a39fff577
commit
d597b3d9e7
@ -4577,8 +4577,8 @@
|
|||||||
$.addClass(el, 'shortcut');
|
$.addClass(el, 'shortcut');
|
||||||
return $.add(Header[icon ? 'icons' : 'stats'], el);
|
return $.add(Header[icon ? 'icons' : 'stats'], el);
|
||||||
},
|
},
|
||||||
rmShortcut: function(el) {
|
rmShortcut: function(el, icon) {
|
||||||
return $.rm(el.parentElement);
|
return $.rm(icon ? el.parentElement : el);
|
||||||
},
|
},
|
||||||
menuToggle: function(e) {
|
menuToggle: function(e) {
|
||||||
return Header.menu.toggle(e, this, g);
|
return Header.menu.toggle(e, this, g);
|
||||||
|
|||||||
@ -4635,8 +4635,8 @@
|
|||||||
$.addClass(el, 'shortcut');
|
$.addClass(el, 'shortcut');
|
||||||
return $.add(Header[icon ? 'icons' : 'stats'], el);
|
return $.add(Header[icon ? 'icons' : 'stats'], el);
|
||||||
},
|
},
|
||||||
rmShortcut: function(el) {
|
rmShortcut: function(el, icon) {
|
||||||
return $.rm(el.parentElement);
|
return $.rm(icon ? el.parentElement : el);
|
||||||
},
|
},
|
||||||
menuToggle: function(e) {
|
menuToggle: function(e) {
|
||||||
return Header.menu.toggle(e, this, g);
|
return Header.menu.toggle(e, this, g);
|
||||||
|
|||||||
@ -94,7 +94,7 @@ Header =
|
|||||||
|
|
||||||
stats: $.el 'span',
|
stats: $.el 'span',
|
||||||
id: 'a-stats'
|
id: 'a-stats'
|
||||||
|
|
||||||
icons: $.el 'span',
|
icons: $.el 'span',
|
||||||
id: 'a-icons'
|
id: 'a-icons'
|
||||||
|
|
||||||
@ -124,12 +124,12 @@ Header =
|
|||||||
$.on btn, 'click', Header.toggleBoardList
|
$.on btn, 'click', Header.toggleBoardList
|
||||||
|
|
||||||
$.rm $ '#navtopright', fullBoardList
|
$.rm $ '#navtopright', fullBoardList
|
||||||
|
|
||||||
shortcuts = $.el 'span',
|
shortcuts = $.el 'span',
|
||||||
id: 'shortcuts'
|
id: 'shortcuts'
|
||||||
|
|
||||||
$.add shortcuts, [Header.stats, Header.icons]
|
$.add shortcuts, [Header.stats, Header.icons]
|
||||||
|
|
||||||
$.prepend d.body, shortcuts
|
$.prepend d.body, shortcuts
|
||||||
|
|
||||||
$.add boardList, fullBoardList
|
$.add boardList, fullBoardList
|
||||||
@ -383,11 +383,11 @@ Header =
|
|||||||
|
|
||||||
addShortcut: (el, icon) ->
|
addShortcut: (el, icon) ->
|
||||||
$.addClass el, 'shortcut'
|
$.addClass el, 'shortcut'
|
||||||
|
|
||||||
$.add Header[if icon then 'icons' else 'stats'], el
|
$.add Header[if icon then 'icons' else 'stats'], el
|
||||||
|
|
||||||
rmShortcut: (el) ->
|
rmShortcut: (el, icon) ->
|
||||||
$.rm el.parentElement
|
$.rm if icon then el.parentElement else el
|
||||||
|
|
||||||
menuToggle: (e) ->
|
menuToggle: (e) ->
|
||||||
Header.menu.toggle e, @, g
|
Header.menu.toggle e, @, g
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user