From 390d3cc538eb76021e9e2de70afe05c54d636098 Mon Sep 17 00:00:00 2001 From: Matthew Harrison-Jones Date: Fri, 12 Jul 2013 16:50:21 +0100 Subject: [PATCH] Fixes persistent menu highlighting Fixes #259 --- core/client/admin-ui-temp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/client/admin-ui-temp.js b/core/client/admin-ui-temp.js index 06e0b266e0..55212a6e42 100644 --- a/core/client/admin-ui-temp.js +++ b/core/client/admin-ui-temp.js @@ -40,6 +40,9 @@ var $target = $(event.target); if (!$target.parents().is(".overlay:visible") && !$target.is(".overlay:visible")) { $("body").find(".overlay:visible").fadeOut(); + + // Toggle active classes on menu headers + $("[data-toggle].active").removeClass("active"); } });