mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #262 from matthojo/User-Menu-Highlighting
Fixes persistent menu highlighting
This commit is contained in:
commit
f699750295
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@
|
||||||
var $target = $(event.target);
|
var $target = $(event.target);
|
||||||
if (!$target.parents().is(".overlay:visible") && !$target.is(".overlay:visible")) {
|
if (!$target.parents().is(".overlay:visible") && !$target.is(".overlay:visible")) {
|
||||||
$("body").find(".overlay:visible").fadeOut();
|
$("body").find(".overlay:visible").fadeOut();
|
||||||
|
|
||||||
|
// Toggle active classes on menu headers
|
||||||
|
$("[data-toggle].active").removeClass("active");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue