That works too.

This commit is contained in:
Nicolas Stepien 2013-02-11 17:19:58 +01:00
parent a70b1ee739
commit 0adc86b392
2 changed files with 7 additions and 9 deletions

View File

@ -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) {

View File

@ -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) ->