Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit 5a44ea2e207b396c8dbdb0baab65046403628647 1 parent 4a8236f
Ingo Schommer authored August 27, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  admin/javascript/LeftAndMain.Tree.js
1  admin/javascript/LeftAndMain.Tree.js
@@ -307,6 +307,7 @@
307 307
 				if(id) {
308 308
 					node = this.getNodeByID(id);
309 309
 					if(node.length) {
  310
+						this.jstree('deselect_all');
310 311
 						this.jstree('select_node', node);
311 312
 					} else {
312 313
 						// If form is showing an ID that doesn't exist in the tree,

0 notes on commit 5a44ea2

Please sign in to comment.
Something went wrong with that request. Please try again.