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)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?