From 47d3948312a468572637ee34490e8f09c7b2d39e Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 12 May 2014 12:28:09 +0000 Subject: [PATCH] SSDM-179: ELN UI - Navigation widget from spaces to experiments SVN: 31485 --- .../newbrowser/html/js/views/MainMenu.js | 2 ++ .../html/js/widgets/BrowserWidget.js | 24 +++++++++++++++++++ .../html/js/widgets/InventoryWidget.js | 6 ++--- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/MainMenu.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/MainMenu.js index 13f167e7ab8..568992b22f3 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/MainMenu.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/MainMenu.js @@ -21,6 +21,8 @@ * @this {MainMenu} * @param {string} containerId The Container where the Inspector DOM will be atached. * @param {List<GroupOfMenuItems>} inventoryStructure The menu structure. + * @param {Map<String, List<Projects>>} experimentsStructure The menu structure. + * @param {String} mainMenuContentExtra Extra HTML code for the main menu. */ function MainMenu(mainController, containerId, inventoryStructure, experimentsStructure, mainMenuContentExtra) { this.mainController = mainController; diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/BrowserWidget.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/BrowserWidget.js index 922b42896b4..f2bbeec8d1f 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/BrowserWidget.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/BrowserWidget.js @@ -1,3 +1,27 @@ +/* + * Copyright 2014 ETH Zuerich, Scientific IT Services + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Creates an instance of the browser widget. + * + * @constructor + * @this {BrowserWidget} + * @param {string} containerId The Container where the Inspector DOM will be attached. + * @param {Map<String, List<Projects>>} structure The menu structure. + */ function BrowserWidget(mainController, containerId, structure) { this.containerId = containerId; this.mainController = mainController; diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/InventoryWidget.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/InventoryWidget.js index 3d38a55dd3d..034eb356f13 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/InventoryWidget.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/InventoryWidget.js @@ -15,11 +15,11 @@ */ /** - * Creates an instance of MainMenu. + * Creates an instance of the inventory widget. * * @constructor - * @this {MainMenu} - * @param {string} containerId The Container where the Inspector DOM will be atached. + * @this {InventoryWidget} + * @param {string} containerId The Container where the Inspector DOM will be attached. * @param {List<GroupOfMenuItems>} menuStructure The menu structure. */ function InventoryWidget(mainController, containerId, menuStructure) { -- GitLab