This commit is contained in:
luqiong 2014-08-20 10:20:20 +08:00
parent 846648f424
commit 2296c787a2
1 changed files with 6 additions and 0 deletions

View File

@ -77,5 +77,11 @@ function jstreeCreate(containerId){
}
},
"plugins" : [ "contextmenu","dnd","types","wholerow" ]
}).on('select_node.jstree',function(e,data){
if(data.selected.length>1){
var ref = $("#"+containerId).jstree(true);
ref.deselect_all();
ref.select_node(data.node);
}
})
}