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.

Jquery Conflict?

Home Forums Older releases 0.9.x Jquery Conflict?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1272
    Stephanie0042
    Participant

    Hi All,
    I believe I’ve got a jquery conflict, but for the life of me I can’t find it.

    I’m using D7 with jquery update and I’m trying to get the jquery based SmartMenus to work: http://www.smartmenus.org/
    For the most part I’ve got it installed and working, but the problem I’m having is that the drop down menus will not close when I mouse off them.

    The menu can be seen here:
    http://www.multibrand.visionmix.us/

    I’m not sure what other kind of information to post, so please let me know and I’ll add it.
    I’d really appreciate any help.
    Thanks
    Steph

    #1463
    admin
    Keymaster

    Hi,

    As far as I can see, the issue is in the following file:
    http://www.multibrand.visionmix.us/sites/all/themes/multibrand2013/js/scripts.js

    Just replace the following lines:

    $('#mainnav ul.menu').smartmenus();
    $('#main-menu').smartmenus('menuHideAll');

    with this:

    $('#mainnav ul.menu:first').smartmenus();

    The problem is that $('#mainnav ul.menu') selects 3 UL elements (the root UL and 2 sub UL’s) and the script tries to initialize them all while normally we should initialize just the root UL.

    Please let me know if you still have any troubles.

    Cheers!

    #1464
    Stephanie0042
    Participant

    Thank you so much! it worked!

    #1465
    admin
    Keymaster

    Np at all, cheers!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.