edit contextmenu of jstree
This commit is contained in:
parent
d8cb749f6b
commit
ea53212a53
|
@ -89,8 +89,10 @@ function jstreeCreate(containerId){
|
|||
var tmp = $.jstree.defaults.contextmenu.items();
|
||||
delete tmp.create;
|
||||
delete tmp.ccp;
|
||||
if(node.data!="page" && node.data!="batch"){
|
||||
delete tmp.rename;
|
||||
if(containerId == "useBehaviorList"){
|
||||
if(node.data!="page" && node.data!="batch"){
|
||||
delete tmp.rename;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue