commit fae7843ef8af91447fe3e66c676bc723b9ddc574 parent 595797981e48cc4ce447ec5c8ae1d0a5545e692e Author: Timo A. Hummel <timo@netraver.de> Date: Tue, 7 Jun 2011 09:41:43 +0200 Expand "Root Category" after load Diffstat:
M | frontend/js/Components/CategoryTree.js | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/frontend/js/Components/CategoryTree.js b/frontend/js/Components/CategoryTree.js @@ -39,6 +39,9 @@ PartDB2.CategoryTree = Ext.define("CategoryTree", { this.getStore().sort("name"); this.loaded = true; + + this.getRootNode().expandChildren(); + this.fireEvent("categoriesLoaded"); },