|
@@ -425,6 +425,7 @@ var Assist = function (vm) {
|
|
|
if (ipath.split(".").length == 2 && ipath.split(".")[0] == path){
|
|
if (ipath.split(".").length == 2 && ipath.split(".")[0] == path){
|
|
|
self.fetchHivePath(ipath, function() {
|
|
self.fetchHivePath(ipath, function() {
|
|
|
self.updateTreeProperty(self.growingTree(), "isExpanded", true);
|
|
self.updateTreeProperty(self.growingTree(), "isExpanded", true);
|
|
|
|
|
+ self.loadData(self.growingTree());
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -443,10 +444,14 @@ var Assist = function (vm) {
|
|
|
obj.isExpanded(!obj.isExpanded());
|
|
obj.isExpanded(!obj.isExpanded());
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- obj.isExpanded(true);
|
|
|
|
|
|
|
+ obj.isExpanded(false);
|
|
|
}
|
|
}
|
|
|
self.updatePathProperty(self.growingTree(), obj.path(), "isExpanded", obj.isExpanded());
|
|
self.updatePathProperty(self.growingTree(), obj.path(), "isExpanded", obj.isExpanded());
|
|
|
}
|
|
}
|
|
|
|
|
+ else {
|
|
|
|
|
+ obj.isExpanded(false);
|
|
|
|
|
+ self.updatePathProperty(self.growingTree(), obj.path(), "isExpanded", obj.isExpanded());
|
|
|
|
|
+ }
|
|
|
self.path(obj.path());
|
|
self.path(obj.path());
|
|
|
$(document).trigger("changed.path");
|
|
$(document).trigger("changed.path");
|
|
|
self.fetchHivePath();
|
|
self.fetchHivePath();
|