Index: branches/RC/core/admin_templates/js/tree.js =================================================================== diff -u -r9242 -r9243 --- branches/RC/core/admin_templates/js/tree.js (.../tree.js) (revision 9242) +++ branches/RC/core/admin_templates/js/tree.js (.../tree.js) (revision 9243) @@ -171,6 +171,10 @@ if (this.Children && do_sub && !this.Expanding) { this.expand(); } + + if (this.ParentFolder != null && !this.ParentFolder.Expanded) { + this.ParentFolder.expand(); + } } TreeItem.prototype.hide = function() @@ -198,14 +202,7 @@ } } -TreeItem.prototype.expandParentNode = function() { - if (this.ParentFolder != null && !this.ParentFolder.Expanded) { - this.ParentFolder.expand(); - } -} - TreeItem.prototype.expand = function() { - this.expandParentNode(); this.display(); } @@ -550,8 +547,6 @@ } this.Expanding = true; - this.expandParentNode(); - if (!isset(mode)) mode = 0; this.display(); if (mode == 0 || this.Expanded ) {