metismenu icon indicating copy to clipboard operation
metismenu copied to clipboard

expand

Open zaki1 opened this issue 10 years ago • 2 comments

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');
        }

zaki1 avatar Jun 24 '14 16:06 zaki1

See https://github.com/onokumus/metisMenu/issues/5

onokumus avatar Jun 24 '14 16:06 onokumus

Thanks for that It produces same result as above see my comment please #5

zaki1 avatar Jun 25 '14 09:06 zaki1