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