if (model.loading) {
+
+
return;
}
print("LOADING IS FALSE");
},
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);