Skip to content
Snippets Groups Projects
Commit e35c650b authored by juanf's avatar juanf
Browse files

SSDM-232: ELN UI - Navigation widget from spaces to experiments (unfinished)

SVN: 31449
parent fd6b2f05
No related branches found
No related tags found
No related merge requests found
...@@ -36,15 +36,25 @@ function MainMenu(mainController, containerId, menuStructure, mainMenuContentExt ...@@ -36,15 +36,25 @@ function MainMenu(mainController, containerId, menuStructure, mainMenuContentExt
this.repaint = function() { this.repaint = function() {
var mainMenuWrapper = $("#"+this.containerId); var mainMenuWrapper = $("#"+this.containerId);
mainMenuWrapper.empty(); mainMenuWrapper.empty();
//Browser Widget Title/Container
mainMenuWrapper.append($("<h1>", {"style" : "clear: both;"}).text("Spaces > Projects > Experiments")); mainMenuWrapper.append($("<h1>", {"style" : "clear: both;"}).text("Spaces > Projects > Experiments"));
mainMenuWrapper.append($("<div>", { "id" : "browserWidgetContainer", "style" : "clear: both;"})); mainMenuWrapper.append($("<div>", { "id" : "browserWidgetContainer", "style" : "clear: both;"}));
//Inventory Widget Title/Container
mainMenuWrapper.append($("<h1>", {"style" : "clear: both;"}).text("Inventory")); mainMenuWrapper.append($("<h1>", {"style" : "clear: both;"}).text("Inventory"));
mainMenuWrapper.append($("<div>", { "id" : "inventoryWidgetContainer", "style" : "clear: both;"})); mainMenuWrapper.append($("<div>", { "id" : "inventoryWidgetContainer", "style" : "clear: both;"}));
//Extra content form the profile
var $mainMenuExtra = $("<div>", { id: "mainMenuExtra", style: "clear:both;" }); var $mainMenuExtra = $("<div>", { id: "mainMenuExtra", style: "clear:both;" });
$mainMenuExtra.append(this.mainMenuContentExtra); $mainMenuExtra.append(this.mainMenuContentExtra);
mainMenuWrapper.append($mainMenuExtra); mainMenuWrapper.append($mainMenuExtra);
//Browser Widget
this.browserWidget = new BrowserWidget("browserWidgetContainer", this.mainController, this.mainController.serverFacade); this.browserWidget = new BrowserWidget("browserWidgetContainer", this.mainController, this.mainController.serverFacade);
this.browserWidget.init(); this.browserWidget.init();
//Inventory Widget
this.inventoryWidget = new InventoryWidget(this.mainController, "inventoryWidgetContainer", this.menuStructure); this.inventoryWidget = new InventoryWidget(this.mainController, "inventoryWidgetContainer", this.menuStructure);
this.inventoryWidget.init(); this.inventoryWidget.init();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment