edit contextmenu and create_node

This commit is contained in:
luqiong 2014-08-21 15:10:36 +08:00
parent 700a9145ba
commit f96806bbe1
2 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -89,10 +89,9 @@ function jstreeCreate(containerId){
var tmp = $.jstree.defaults.contextmenu.items();
delete tmp.create;
delete tmp.ccp;
delete tmp.remove;
if(containerId == "useBehaviorList"){
if(node.data!="page" && node.data!="batch"){
delete tmp.rename;
}
delete tmp.rename;
}
return tmp;
}