Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

dameer

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: showOnClick doesn't hide submenu when clicked again #8328
    dameer
    Participant

    OK, got it resolved by replacing the line:

    firstLevelSub = $sub ? $sub.dataSM('level') == 2 : false;

    …with just:

    firstLevelSub = $sub ? $sub.dataSM('level') >= 2 : false;

    Cheers!

    in reply to: showOnClick doesn't hide submenu when clicked again #8327
    dameer
    Participant

    Oho! Now the things work much better 😀 The only problem is the fact that the above code is OK for the level-1 sub-menu. In case there’s a sub-menu item which opens level-2 sub-menu, the second click will shut down all sub-menus been opened.

    Thanks for a great work and all of your efforts!

Viewing 2 posts - 1 through 2 (of 2 total)