JQuery Context Menu Plugin

From HunterWiki

Jump to: navigation, search

I used the jQuery context menu from Cory LaViska for quite a while as it was easy to implement and quite functional. However, I ran into a problem where upon upgrading to jQuery 1.4 there was a glitch in the context menu reinvocation (if you right-clicked while the menu was already up, it would invoke the default browser menu). It turns out he's got a new version (1.01) which solves this problem, but happens to introduce another one. Since he's not interested in maintaining the code base any more, I'm posting the fix here.

In the jqeury.contextMenu.js file, replace this line:

if(jQuery)( function() {

with this line:

if(jQuery)( function($) {

And it should allow you to work in environments where the jquery object is not called '$'.

Personal tools