mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
8fb6555df5
Amends #3740 (which amended #3736), ref #3623 - Removed futzy jquery for setting href on logo; binding to ApplicationView property - Killed dead code
19 lines
528 B
JavaScript
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;
|