Deselect tree nodes when reacting to form load event (fixes #7401)

Multiselected nodes are only possible in batch mode,
which would never trigger a form load event.
This commit is contained in:
Ingo Schommer 2012-08-27 16:46:25 +02:00
parent 4a8236ffa7
commit 5a44ea2e20

View File

@ -307,6 +307,7 @@
if(id) {
node = this.getNodeByID(id);
if(node.length) {
this.jstree('deselect_all');
this.jstree('select_node', node);
} else {
// If form is showing an ID that doesn't exist in the tree,