diff --git a/jquery.contextMenu.js b/jquery.contextMenu.js index 394f2f9..bf43275 100644 --- a/jquery.contextMenu.js +++ b/jquery.contextMenu.js @@ -26,7 +26,8 @@ default_options = { shiftDisable : false, // Allow access to native contextMenu by rightclick + shift disable_native_context_menu: false, // disables the native contextmenu everywhere you click - leftClick: false // show menu on left mouse click instead of right + leftClick: false, // show menu on left mouse click instead of right + jqui: false // enable integration with jQuery-UI }, options = $.extend(default_options, options); @@ -47,11 +48,15 @@ } else { var link = ''+me+''; } + + if (itemOptions.icon && options.jqui) { + link = '' + link; + } var menuItem = $('