Permalink
Browse files

BUGFIX Only select node after form reload if creating the node

  • Loading branch information...
1 parent 6cfade0 commit d4dbb0680b191a2fd9373567d8a93f6429cd2468 @chillu chillu committed Mar 22, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 javascript/LeftAndMain.Tree.js
@@ -232,14 +232,17 @@
self.jstree('select_node', newNode);
}
);
+ // set current tree element
+ this.jstree('select_node', node);
}
// TODO Fix node parent setting
// // set correct parent (only if it has changed)
// if(parentID) this.setNodeParentID(id, jQuery(e.target.ParentID).val());
- // set current tree element
- this.jstree('select_node', node);
+ // TODO Fix doubleup when replacing page form with root form, reloads the old form over the root
+ // set current tree element regardless of wether the item was new
+ // this.jstree('select_node', node);
} else {
if(typeof eventData.origData != 'undefined') {
var node = this.find('li[data-id='+eventData.origData.ID+']');

0 comments on commit d4dbb06

Please sign in to comment.