metismenu
metismenu copied to clipboard
expand
Hi,
When the menu is open and one of the sub menu has a href set to another page. Is it possible to once navigated to keep this menu open. I tried with jquery cookie but it is not working properly see below code :
var menuCookie = $.cookie('cookie_collapse');
$(".nav-second-level li a").click(function (e) {
menuCookie = $.cookie('cookie_collapse', $(e.target).attr('id'));
console.log(menuCookie);
e.stopPropagation();
});
console.log(menuCookie);
if (menuCookie) {
$('#' + menuCookie).parent().parent().parent().addClass('active');
}
See https://github.com/onokumus/metisMenu/issues/5
Thanks for that It produces same result as above see my comment please #5