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