mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Merge pull request #262 from matthojo/User-Menu-Highlighting
Fixes persistent menu highlighting
This commit is contained in:
commit
f699750295
@ -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…
Reference in New Issue
Block a user