From d61e37e7990c5d0b3a30ce6becafff5a83d3190f 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) --- core/client/templates/-navbar.hbs | 4 ++-- core/client/views/application.js | 32 +++++++++++++------------ core/client/views/posts.js | 1 - core/test/functional/client/app_test.js | 8 +++---- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/core/client/templates/-navbar.hbs b/core/client/templates/-navbar.hbs index ce16be87a1..1f70bb82ca 100644 --- a/core/client/templates/-navbar.hbs +++ b/core/client/templates/-navbar.hbs @@ -1,7 +1,7 @@