• Andrew Smith's avatar
    Updates the plugin so that it can support multiple instances. · a510f0a8
    Andrew Smith authored
    Multiple instances need to be applied to different elements in the DOM
    otherwise multiple menus will be called for each click/right click.
    
    e.g.
    
    jQuery(document).ContextMenu(url);
    
    would work for any form on a page. Using this would mean that multiple
    instances couldn't be used though
    
    jQuery('#content form').eq(0).ContextMenu(url);
    jQuery('#content form').eq(3).ContextMenu(url);
    
    Using the above 2 menus will be created for the first and 4th forms on
    the page. Any of forms won't response to menu clicks.
    
    jQuery(docuemnt).ContextMenu(url);
    jQuery('#content form').eq(0).ContextMenu(url);
    
    With the above any form on the page will respond to menu clicks but the
    first form will send 2 requests for the context menu.
    a510f0a8
Name
Last commit
Last update
..
calendar Loading commit data...
jstoolbar Loading commit data...
application.js Loading commit data...
context_menu.jquery.js Loading commit data...
context_menu.js Loading commit data...
controls.js Loading commit data...
dragdrop.js Loading commit data...
effects.js Loading commit data...
jquery-ui.min.js Loading commit data...
jquery.menu_expand.js Loading commit data...
jquery.min.js Loading commit data...
prototype.js Loading commit data...
repository_navigation.js Loading commit data...
select_list_move.js Loading commit data...