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.

Re: Making Smart Menu's work with Prototype javascript library

Home Forums Older releases 0.9.x Making Smart Menu's work with Prototype javascript library Re: Making Smart Menu's work with Prototype javascript library

#1614
admin
Keymaster

Hi,

Actually, you don’t need to edit jquery.smartmenus.min.js at all, you can use the stock version. It doesn’t use $ but jQuery and when you add this:

var $j = jQuery.noConflict();

jQuery will free the $ variable but will keep jQuery so you could still use any plugins (that are properly coded to not rely on $) without any modifications. But yes, for the initialization lines, you would need to replace $ with $j or jQuery like you’ve done.

Cheers!