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