Commit 0f5d2647 authored by alexandre's avatar alexandre

Fix #47 (sidebar hidding on score detail pages)

parent c5c364fd
......@@ -47,6 +47,8 @@ window.W = window.W || {};
baseView.showChildView('main', myScoreDetailView);
}).bind(this)
});
baseView.getChildView('header').triggerMethod("hide");
}
});
})();
......@@ -1620,6 +1620,8 @@ window.W = window.W || {};
},
triggers: {
'click @ui.show': 'show',
'click @ui.hide': 'hide',
'click @ui.toggle': 'toggle',
'click @ui.login': 'show:login',
'click @ui.logout': 'show:logout',
......@@ -1634,6 +1636,14 @@ window.W = window.W || {};
create: '#create'
},
onShow: function () {
this.$el.removeClass('main-header--collapsed');
},
onHide: function () {
console.log("hiding");
this.$el.addClass('main-header--collapsed');
},
onToggle: function () {
this.$el.toggleClass('main-header--collapsed');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment