From 0a2034f7e40d3aaf6494b07fc7c7b95e4be39964 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Sun, 10 Aug 2014 14:50:25 -0600 Subject: [PATCH] Fix -navbar events attachment Closes #3623 - Move hamburger logic to action with terrible name, "toggleSidebarOrGoHome" - Move ".js-close-sidebar" events to a document.on(event, *selector*, f) to make sure they attach even when the js-close-sidebars aren't on page (ie, hidenav) --- ghost/admin/templates/-navbar.hbs | 4 ++-- ghost/admin/views/application.js | 32 ++++++++++++++++--------------- ghost/admin/views/posts.js | 1 - 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/ghost/admin/templates/-navbar.hbs b/ghost/admin/templates/-navbar.hbs index ce16be87a1..1f70bb82ca 100644 --- a/ghost/admin/templates/-navbar.hbs +++ b/ghost/admin/templates/-navbar.hbs @@ -1,7 +1,7 @@