That works too.
This commit is contained in:
parent
a70b1ee739
commit
0adc86b392
@ -967,12 +967,9 @@
|
|||||||
return $('.board-list', headerEl).hidden = !showBoardList;
|
return $('.board-list', headerEl).hidden = !showBoardList;
|
||||||
},
|
},
|
||||||
toggleBar: function() {
|
toggleBar: function() {
|
||||||
var isAutohiding;
|
var isAutohiding, message;
|
||||||
if (isAutohiding = $.id('header-bar').classList.toggle('autohide')) {
|
message = (isAutohiding = $.id('header-bar').classList.toggle('autohide')) ? 'The header bar will automatically hide itself.' : 'The header bar will remain visible.';
|
||||||
new Notification('info', 'The header bar will automatically hide itself.', 2);
|
new Notification('info', message, 2);
|
||||||
} else {
|
|
||||||
new Notification('info', 'The header bar will remain visible.', 2);
|
|
||||||
}
|
|
||||||
return $.set('autohideHeaderBar', isAutohiding);
|
return $.set('autohideHeaderBar', isAutohiding);
|
||||||
},
|
},
|
||||||
menuToggle: function(e) {
|
menuToggle: function(e) {
|
||||||
|
|||||||
@ -62,10 +62,11 @@ Header =
|
|||||||
$('.board-list', headerEl).hidden = !showBoardList
|
$('.board-list', headerEl).hidden = !showBoardList
|
||||||
|
|
||||||
toggleBar: ->
|
toggleBar: ->
|
||||||
if isAutohiding = $.id('header-bar').classList.toggle 'autohide'
|
message = if isAutohiding = $.id('header-bar').classList.toggle 'autohide'
|
||||||
new Notification 'info', 'The header bar will automatically hide itself.', 2
|
'The header bar will automatically hide itself.'
|
||||||
else
|
else
|
||||||
new Notification 'info', 'The header bar will remain visible.', 2
|
'The header bar will remain visible.'
|
||||||
|
new Notification 'info', message, 2
|
||||||
$.set 'autohideHeaderBar', isAutohiding
|
$.set 'autohideHeaderBar', isAutohiding
|
||||||
|
|
||||||
menuToggle: (e) ->
|
menuToggle: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user