From 2296c787a2adade9df4450f1d0fda377b98764b5 Mon Sep 17 00:00:00 2001 From: luqiong <605601787@qq.com> Date: Wed, 20 Aug 2014 10:20:20 +0800 Subject: [PATCH] add --- Bench4Q-Web/src/main/webapp/script/editor/jstreeFactory.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bench4Q-Web/src/main/webapp/script/editor/jstreeFactory.js b/Bench4Q-Web/src/main/webapp/script/editor/jstreeFactory.js index a2628a93..2337111a 100644 --- a/Bench4Q-Web/src/main/webapp/script/editor/jstreeFactory.js +++ b/Bench4Q-Web/src/main/webapp/script/editor/jstreeFactory.js @@ -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); + } }) } \ No newline at end of file