2014-07-07 18:55:22 +04:00
|
|
|
var ApplicationView = Ember.View.extend({
|
2014-08-11 19:51:06 +04:00
|
|
|
blogRoot: Ember.computed.alias('controller.ghostPaths.blogRoot'),
|
|
|
|
|
2014-08-11 00:50:25 +04:00
|
|
|
setupCloseSidebar: function () {
|
2014-07-07 18:55:22 +04:00
|
|
|
// #### Navigating within the sidebar closes it.
|
2014-08-11 00:50:25 +04:00
|
|
|
$(document).on('click', '.js-close-sidebar', function () {
|
|
|
|
$('body').removeClass('off-canvas');
|
2014-07-07 18:55:22 +04:00
|
|
|
});
|
2014-08-11 00:50:25 +04:00
|
|
|
}.on('didInsertElement'),
|
|
|
|
|
|
|
|
actions: {
|
2014-08-11 19:51:06 +04:00
|
|
|
toggleSidebar: function () {
|
|
|
|
$('body').toggleClass('off-canvas');
|
2014-08-11 00:50:25 +04:00
|
|
|
}
|
|
|
|
}
|
2014-07-07 18:55:22 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default ApplicationView;
|