jimbinho
asked on
jquery context menu and simple tree
I am having troubble with getting the context menu to work with the simple tree.
It will work after the second right click has been made.
How can i make this work on the first right click?
I think it will be something todo with enabling context menu first and re-enabling when the click is made.
It will work after the second right click has been made.
How can i make this work on the first right click?
I think it will be something todo with enabling context menu first and re-enabling when the click is made.
$('.content_Text_files').load('ajax/webpage_manage_load.php', function(){
simpleTreeCollection = $('.simpleTree').simpleTree({
autoclose: false,
drag: false,
afterClick:function(node){
thisClick = $('span:first',node).parent().attr('id');
makeMenu(3);
widgetClicksLoad('widgets/ajax/load_list.php?pageID='+ thisClick)
$('#widgetProd').val('');
$('#widgetCat').val(thisClick);
},
afterContextMenu:function(node){
$('span:first',node).contextMenu({menu: 'myMenu'}, function(action, el, pos) {
TreeMenu(action,$('span:first',node).parent().attr('id'));
});
},
animate:true
});
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.