diff --git a/install.sh b/install.sh index 2d3a3de79a..1ae67b8ff5 100755 --- a/install.sh +++ b/install.sh @@ -290,17 +290,8 @@ SUNSTONE_DIRS="$SUNSTONE_LOCATION/routes \ $SUNSTONE_LOCATION/public/vendor \ $SUNSTONE_LOCATION/public/vendor/crypto-js \ $SUNSTONE_LOCATION/public/vendor/explorercanvas \ - $SUNSTONE_LOCATION/public/vendor/jQueryLayout \ - $SUNSTONE_LOCATION/public/vendor/dataTables \ - $SUNSTONE_LOCATION/public/vendor/jQueryUI \ - $SUNSTONE_LOCATION/public/vendor/jQueryUI/images \ - $SUNSTONE_LOCATION/public/vendor/jQuery \ - $SUNSTONE_LOCATION/public/vendor/jGrowl \ $SUNSTONE_LOCATION/public/vendor/flot \ $SUNSTONE_LOCATION/public/vendor/fileuploader \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome/css \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome/font \ $SUNSTONE_LOCATION/public/vendor/4.0 \ $SUNSTONE_LOCATION/public/vendor/4.0/datatables \ $SUNSTONE_LOCATION/public/vendor/4.0/foundation_datatables \ @@ -1418,78 +1409,6 @@ SUNSTONE_PUBLIC_JS_PLUGINS_FILES="\ SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/app.css \ src/sunstone/public/css/login.css" -SUNSTONE_PUBLIC_VENDOR_DATATABLES="\ - src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js \ - src/sunstone/public/vendor/dataTables/ColVis.min.js \ - src/sunstone/public/vendor/dataTables/ColReorderWithResize.js \ - src/sunstone/public/vendor/dataTables/demo_table_jui.css \ - src/sunstone/public/vendor/dataTables/ColVis.css \ - src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt \ - src/sunstone/public/vendor/dataTables/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JGROWL="\ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css \ - src/sunstone/public/vendor/jGrowl/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JQUERY="\ - src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js \ - src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt \ - src/sunstone/public/vendor/jQuery/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JQUERYUI="\ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ -src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ -src/sunstone/public/vendor/jQueryUI/NOTICE \ -" - -SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES="\ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ -" - - - -SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT="\ - src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css \ - src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ - src/sunstone/public/vendor/jQueryLayout/NOTICE" - SUNSTONE_PUBLIC_VENDOR_FLOT="\ src/sunstone/public/vendor/flot/jquery.flot.min.js \ src/sunstone/public/vendor/flot/jquery.flot.navigate.min.js \ @@ -1519,25 +1438,6 @@ SUNSTONE_PUBLIC_VENDOR_XML2JSON="\ src/sunstone/public/vendor/xml2json/NOTICE \ src/sunstone/public/vendor/xml2json/jquery.xml2json.pack.js" -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME="\ -src/sunstone/public/vendor/FontAwesome/NOTICE \ -" - -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_CSS="\ -src/sunstone/public/vendor/FontAwesome/css/font-awesome.css \ -" - -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_FONT="\ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ -" - - - - - SUNSTONE_PUBLIC_NEW_VENDOR_DATATABLES="\ src/sunstone/public/vendor/4.0/datatables/media/js/jquery.dataTables.min.js \ src/sunstone/public/vendor/4.0/datatables/license-bsd.txt" @@ -1719,33 +1619,100 @@ OZONES_LIB_API_ZONA_FILES="src/ozones/Client/lib/zona/ZoneElement.rb \ src/ozones/Client/lib/zona/OZonesElement.rb \ src/ozones/Client/lib/zona/ZonePool.rb" -OZONES_PUBLIC_VENDOR_JQUERY=$SUNSTONE_PUBLIC_VENDOR_JQUERY +OZONES_PUBLIC_VENDOR_JQUERY="\ + src/ozones/Server/public/vendor/jQuery/jquery-1.7.2.min.js \ + src/ozones/Server/public/vendor/jQuery/MIT-LICENSE.txt \ + src/ozones/Server/public/vendor/jQuery/NOTICE" OZONES_PUBLIC_VENDOR_CRYPTOJS=$SUNSTONE_PUBLIC_VENDOR_CRYPTOJS -OZONES_PUBLIC_VENDOR_DATATABLES=$SUNSTONE_PUBLIC_VENDOR_DATATABLES +OZONES_PUBLIC_VENDOR_DATATABLES="\ + src/ozones/Server/public/vendor/dataTables/jquery.dataTables.min.js \ + src/ozones/Server/public/vendor/dataTables/ColVis.min.js \ + src/ozones/Server/public/vendor/dataTables/ColReorderWithResize.js \ + src/ozones/Server/public/vendor/dataTables/demo_table_jui.css \ + src/ozones/Server/public/vendor/dataTables/ColVis.css \ + src/ozones/Server/public/vendor/dataTables/BSD-LICENSE.txt \ + src/ozones/Server/public/vendor/dataTables/NOTICE" -OZONES_PUBLIC_VENDOR_JGROWL=$SUNSTONE_PUBLIC_VENDOR_JGROWL +OZONES_PUBLIC_VENDOR_JGROWL="\ + src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ + src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl.css \ + src/ozones/Server/public/vendor/jGrowl/NOTICE" -OZONES_PUBLIC_VENDOR_JQUERYUI=$SUNSTONE_PUBLIC_VENDOR_JQUERYUI +OZONES_PUBLIC_VENDOR_JQUERYUI="\ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ +src/ozones/Server/public/vendor/jQueryUI/MIT-LICENSE.txt \ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ +src/ozones/Server/public/vendor/jQueryUI/NOTICE \ +" -OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES=$SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES +OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES="\ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ +" -OZONES_PUBLIC_VENDOR_JQUERYLAYOUT=$SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT +OZONES_PUBLIC_VENDOR_JQUERYLAYOUT="\ + src/ozones/Server/public/vendor/jQueryLayout/layout-default-latest.css \ + src/ozones/Server/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ + src/ozones/Server/public/vendor/jQueryLayout/NOTICE" -OZONES_PUBLIC_VENDOR_FONTAWESOME=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME +OZONES_PUBLIC_VENDOR_FONTAWESOME="\ +src/ozones/Server/public/vendor/FontAwesome/NOTICE \ +" -OZONES_PUBLIC_VENDOR_FONTAWESOME_FONT=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_FONT +OZONES_PUBLIC_VENDOR_FONTAWESOME_FONT="\ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ +" -OZONES_PUBLIC_VENDOR_FONTAWESOME_CSS=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_CSS +OZONES_PUBLIC_VENDOR_FONTAWESOME_CSS="\ +src/ozones/Server/public/vendor/FontAwesome/css/font-awesome.css \ +" OZONES_PUBLIC_JS_FILES="src/ozones/Server/public/js/ozones.js \ - src/ozones/Server/public/js/login.js \ - src/ozones/Server/public/js/ozones-util.js \ - src/sunstone/public/js/layout.js \ - src/sunstone/public/js/sunstone.js \ - src/sunstone/public/js/sunstone-util.js \ - src/sunstone/public/js/locale.js" + src/ozones/Server/public/js/login.js \ + src/ozones/Server/public/js/ozones-util.js \ + src/ozones/Server/public/js/legacysunstone/layout.js \ + src/ozones/Server/public/js/legacysunstone/sunstone.js \ + src/ozones/Server/public/js/legacysunstone/sunstone-util.js \ + src/ozones/Server/public/js/legacysunstone/locale.js" OZONES_PUBLIC_CSS_FILES="src/ozones/Server/public/css/application.css \ src/ozones/Server/public/css/layout.css \ diff --git a/src/ozones/Server/public/js/legacysunstone/layout.js b/src/ozones/Server/public/js/legacysunstone/layout.js new file mode 100644 index 0000000000..1fde922a16 --- /dev/null +++ b/src/ozones/Server/public/js/legacysunstone/layout.js @@ -0,0 +1,161 @@ +/* -------------------------------------------------------------------------- */ +/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ +/* */ +/* 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. */ +/* -------------------------------------------------------------------------- */ + +var activeTab; +var outerLayout, innerLayout; + +function hideDialog(){ + innerLayout.close("south"); +} + +function popDialog(content){ + $("#dialog").html(content); + innerLayout.open("south"); +} + +function popDialogLoading(){ + var loading = '

| '+this.title+' |
|---|
| \
+ '+
+ spinner+
+ ' \
+ |
';
+ switch(quota_json.TYPE){
+ case "VM":
+ str += 'VMs: ' + quota_json.VMS + (quota_json.VMS_USED ? ' (' + quota_json.VMS_USED + '). ' : ". ") +
+ 'Memory: ' + quota_json.MEMORY + (quota_json.MEMORY_USED ? ' MB (' + quota_json.MEMORY_USED + ' MB). ' : " MB. ") +
+ 'CPU: ' + quota_json.CPU + (quota_json.CPU_USED ? ' (' + quota_json.CPU_USED + '). ' : ". ");
+ break;
+ case "DATASTORE":
+ str += 'ID/Name: ' + getDatastoreName(quota_json.ID) + '. ' +
+ 'Size: ' + quota_json.SIZE + (quota_json.SIZE_USED ? ' MB (' + quota_json.SIZE_USED + ' MB). ' : " MB. ") +
+ 'Images: ' + quota_json.IMAGES + (quota_json.IMAGES_USED ? ' (' + quota_json.IMAGES_USED + '). ' : ".");
+ break;
+ case "IMAGE":
+ str += 'ID/Name: ' + getImageName(quota_json.ID) + '. ' +
+ 'RVMs: ' + quota_json.RVMS + (quota_json.RVMS_USED ? ' (' + quota_json.RVMS_USED + '). ' : ". ");
+ break;
+ case "NETWORK":
+ str += 'ID/Name: ' + getVNetName(quota_json.ID) + '. ' +
+ 'Leases: ' + quota_json.LEASES + (quota_json.LEASES_USED ? ' (' + quota_json.LEASES_USED + '). ': ". ");
+ break;
+ }
+ str += '
';
+
+var main_tabs_context;
+var dialogs_context;
+var plots_context;
+var info_panels_context;
+
+
+//Sunstone configuration is formed by predifined "actions", main tabs
+//and "info_panels". Each tab has "content" and "buttons". Each
+//"info_panel" has "tabs" with "content".
+var SunstoneCfg = {
+ "actions" : {},
+ "tabs" : {},
+ "info_panels" : {}
+};
+
+/* Public plugin interface */
+
+var Sunstone = {
+
+ //Adds a predifined action
+ "addAction" : function (action_name,action_obj) {
+ SunstoneCfg["actions"][action_name] = action_obj;
+ },
+
+ //Replaces a predefined action
+ "updateAction" : function(action_name,action_obj) {
+ SunstoneCfg["actions"][action_name] = action_obj;
+ },
+
+ //Deletes a predefined action.
+ "removeAction" : function(action_name) {
+ delete SunstoneCfg["actions"][action_name];
+ },
+
+ //Adds several actions encapsulated in an js object.
+ "addActions" : function(actions) {
+ for (action in actions){
+ Sunstone.addAction(action,actions[action]);
+ }
+ },
+
+ //Adds a new main tab. Refreshes the dom if wanted.
+ "addMainTab" : function(tab_id,tab_obj,refresh) {
+ SunstoneCfg["tabs"][tab_id] = tab_obj;
+ if (refresh){
+ insertTab(tab_id);
+ }
+ },
+
+ //Updates the content of an info tab and refreshes the DOM if wanted.
+ "updateMainTabContent" : function(tab_id,content_arg,refresh){
+ SunstoneCfg["tabs"][tab_id]["content"]=content_arg;
+ //if not present it will not be updated
+ if (refresh){
+ $('div#'+tab_id, main_tabs_context).html(content_arg);
+ }
+ },
+
+ //Replaces the buttons of an info tab and regenerates them if wanted.
+ "updateMainTabButtons" : function(tab_id,buttons_arg,refresh){
+ SunstoneCfg["tabs"][tab_id]["buttons"]=buttons_arg;
+ if (refresh){
+ $('div#'+tab_id+' .action_blocks', main_tabs_context).empty();
+ insertButtonsInTab(tab_id);
+ }
+ },
+
+ //Removes a tab and refreshes the DOM
+ "removeMainTab" : function(tab_id,refresh) {
+ delete SunstoneCfg["tabs"][tab_id];
+ if (refresh) {
+ $('div#'+tab_id, main_tabs_context).remove();
+ $('ul#navigation li#li_'+tab_id).remove();
+ }
+ },
+
+ //Adds a new info panel
+ "addInfoPanel" : function(panel_name, panel_obj){
+ SunstoneCfg["info_panels"][panel_name]=panel_obj;
+ },
+
+ //Replaces an existing info panel
+ "updateInfoPanel" : function(panel_name,panel_obj){
+ SunstoneCfg["info_panels"][panel_name]=panel_obj;
+ },
+
+ //Removes an info panel
+ "removeInfoPanel" : function(panel_name){
+ delete SunstoneCfg["info_panels"][panel_name];
+ },
+
+ //Makes an info panel content pop up in the screen.
+ "popUpInfoPanel" : function(panel_name, selected_tab){
+ popDialog(Sunstone.getInfoPanelHTML(panel_name, selected_tab));
+ },
+
+ //Generates and returns the HTML div element for an info panel, with
+ //Jquery tabs.
+ "getInfoPanelHTML" : function(panel_name,selected_tab){
+ var info_panel = $('