Builder3/Window.js
[app.Builder.js] / Builder3 / Window.js
index e79b90e..c08c03a 100644 (file)
@@ -1631,6 +1631,8 @@ Window=new XObject({
 
                                                                                     
                                                                                     if (model.loading) {
+                                                                                        
+                                                                                         
                                                                                         return;
                                                                                     }
                                                                                     print("LOADING IS FALSE");
@@ -1696,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 = true;
-                                                                                         print("SET LOADING TO TRUE");
+                                                                                       
                                                                                          this.load(pr.toTree());
                                                                                     
                                                                                          this.get('/LeftProjectTree.view').el.expand_all();
-                                                                                        model.loading = false;
-                                                                                         print("SET LOADING TO FALSE");
+                                                                                         model.loading = false;
+                                                                                         
                                                                                     },
                                                                                     load : function(tr,iter) {
                                                                                       //  console.dump(tr);