Ghost/ghost/admin/views/application.js
Matt Enlow 8fb6555df5 Update ghost-logo, death to jQuery
Amends #3740 (which amended #3736), ref #3623
- Removed futzy jquery for setting href on logo; binding to ApplicationView property
- Killed dead code
2014-08-11 09:52:55 -06:00

19 lines
528 B
JavaScript

var ApplicationView = Ember.View.extend({
blogRoot: Ember.computed.alias('controller.ghostPaths.blogRoot'),
setupCloseSidebar: function () {
// #### Navigating within the sidebar closes it.
$(document).on('click', '.js-close-sidebar', function () {
$('body').removeClass('off-canvas');
});
}.on('didInsertElement'),
actions: {
toggleSidebar: function () {
$('body').toggleClass('off-canvas');
}
}
});
export default ApplicationView;