From 28e6cd8e1679ec2236124816f881af6908e3b96a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 8 Jun 2012 17:22:49 +0800 Subject: [PATCH] Builder3/Window.js --- Builder3/Window.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Builder3/Window.js b/Builder3/Window.js index 12f39c00f..f17e66674 100644 --- a/Builder3/Window.js +++ b/Builder3/Window.js @@ -1698,20 +1698,21 @@ Window=new XObject({ }, loadProject : function(pr) { print("LOAD PROJECT"); + var model = this.get('/LeftProjectTree.model'); + model.loading = true; + this.el.clear(); if (!pr) { return; } this.get('/LeftProjectTree').project = pr; - var model = this.get('/LeftProjectTree.model'); - model.loading = 1; - print("SET LOADING TO 1"); + this.load(pr.toTree()); this.get('/LeftProjectTree.view').el.expand_all(); - model.loading = 2; - print("SET LOADING TO 2"); + model.loading = false; + }, load : function(tr,iter) { // console.dump(tr); -- 2.39.2