show tabs in test.js
diff --git a/planetstack/core/xoslib/static/js/xosAdminSite.js b/planetstack/core/xoslib/static/js/xosAdminSite.js
index 820459e..aefe3e1 100644
--- a/planetstack/core/xoslib/static/js/xosAdminSite.js
+++ b/planetstack/core/xoslib/static/js/xosAdminSite.js
@@ -1,7 +1,7 @@
OBJS = ['deployment', 'image', 'networkTemplate', 'network', 'networkSliver', 'networkDeployment', 'node', 'service', 'site', 'slice', 'sliceDeployment', 'slicePrivilege', 'sliver', 'user', 'sliceRole', 'userDeployment'];
NAV_OBJS = ['deployment', 'site', 'slice', 'user'];
-XOSAdminApp = new XOSApplication({logTableId: "#logTable"});
+XOSAdminApp = new XOSApplication({logTableId: "#logTable", hideTabsByDefault: true});
XOSAdminApp.addRegions({
navigation: "#navigationPanel",
diff --git a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
index c5ec0fe..417f8aa 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
@@ -244,13 +244,13 @@
assert(this.app[relatedListViewClassName] != undefined, relatedListViewClassName + " not found");
relatedListViewClass = this.app[relatedListViewClassName].extend({collection: xos[relatedName].filterBy(relatedField,this.model.id)});
this.app[regionName].show(new relatedListViewClass());
- this.app[regionName].$el.hide();
+ if (this.app.hideTabsByDefault) {
+ this.app[regionName].$el.hide();
+ }
tabs.push({name: relatedName, region: regionName});
index = index + 1;
}
- console.log(index);
-
while (index<4) {
this.app["linkedObjs" + (index+1)].empty();
index = index + 1;