mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - hide middle menu when clicking zone node, pod node, systemVM node, dashboard. show middle menu otherwise.
This commit is contained in:
parent
947c2ca16d
commit
743f58fb0c
@ -2092,7 +2092,7 @@ a:hover.search_button {
|
||||
}
|
||||
|
||||
|
||||
.main_contentarea {
|
||||
.main_contentarea_with_midmenu {
|
||||
width:auto;
|
||||
min-height:1000px;
|
||||
height:auto;
|
||||
@ -2100,7 +2100,7 @@ a:hover.search_button {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.main_contentarea_dashboard {
|
||||
.main_contentarea_without_midmenu {
|
||||
width:auto;
|
||||
min-height:1000px;
|
||||
height:auto;
|
||||
|
||||
@ -69,6 +69,8 @@ $(document).ready(function() {
|
||||
selectLeftMenu($(this));
|
||||
|
||||
hideMiddleMenu();
|
||||
|
||||
$("#right_panel").removeClass("main_contentarea").addClass("main_contentarea_dashboard");
|
||||
$("#right_panel").load("jsp/dashboard.jsp", function(){
|
||||
afterLoadDashboardJSP();
|
||||
});
|
||||
@ -78,7 +80,7 @@ $(document).ready(function() {
|
||||
$("#leftmenu_domain").bind("click", function(event) {
|
||||
selectLeftMenu($(this));
|
||||
|
||||
showMiddleMenuWithoutSearch();
|
||||
showMiddleMenu();
|
||||
disableMultipleSelectionInMidMenu();
|
||||
clearMiddleMenu();
|
||||
|
||||
|
||||
@ -540,17 +540,13 @@ var $expandedFirstLevelMenu, $expandedSecondLevelMenu;
|
||||
var selected_midmenu_id = null;
|
||||
function hideMiddleMenu() {
|
||||
$("#middle_menu, #search_panel, #middle_menu_pagination").hide();
|
||||
$("#right_panel").removeClass("main_contentarea").addClass("main_contentarea_dashboard");
|
||||
$("#midmenu_container").empty();
|
||||
$("#right_panel").removeClass("main_contentarea_with_midmenu").addClass("main_contentarea_without_midmenu");
|
||||
}
|
||||
function showMiddleMenu() {
|
||||
$("#middle_menu, #search_panel, #middle_menu_pagination").show();
|
||||
$("#right_panel").removeClass("main_contentarea_dashboard").addClass("main_contentarea");
|
||||
$("#right_panel").removeClass("main_contentarea_without_midmenu").addClass("main_contentarea_with_midmenu");
|
||||
}
|
||||
function showMiddleMenuWithoutSearch() {
|
||||
$("#middle_menu").show();
|
||||
$("#search_panel, #middle_menu_pagination").hide();
|
||||
$("#right_panel").removeClass("main_contentarea_dashboard").addClass("main_contentarea");
|
||||
}
|
||||
|
||||
// adding middle menu item ***
|
||||
function beforeAddingMidMenuItem() {
|
||||
|
||||
@ -77,6 +77,7 @@ function buildZoneTree() {
|
||||
selectLeftMenu(target.parent().parent().parent());
|
||||
var jsonObj = target.data("jsonObj");
|
||||
showPage($("#zone_page"), jsonObj);
|
||||
hideMiddleMenu();
|
||||
zoneJsonToDetailsTab(jsonObj);
|
||||
zoneJsonToNetworkTab(jsonObj);
|
||||
zoneJsonToSecondaryStorageTab(jsonObj);
|
||||
@ -85,7 +86,8 @@ function buildZoneTree() {
|
||||
case "pod_name" :
|
||||
selectLeftMenu(target.parent().parent().parent());
|
||||
var jsonObj = target.data("jsonObj");
|
||||
showPage($("#pod_page"), jsonObj);
|
||||
showPage($("#pod_page"), jsonObj);
|
||||
hideMiddleMenu();
|
||||
podJsonToDetailsTab(jsonObj);
|
||||
break;
|
||||
|
||||
@ -93,6 +95,7 @@ function buildZoneTree() {
|
||||
selectLeftMenu(target.parent().parent().parent());
|
||||
var jsonObj = target.data("jsonObj");
|
||||
showPage($("#cluster_page"), jsonObj);
|
||||
showMiddleMenu();
|
||||
clusterJsonToDetailsTab(jsonObj);
|
||||
var clusterId = jsonObj.id;
|
||||
$("#midmenu_container").empty();
|
||||
@ -103,7 +106,8 @@ function buildZoneTree() {
|
||||
case "systemvm_name" :
|
||||
selectLeftMenu(target.parent().parent().parent());
|
||||
var jsonObj = target.data("jsonObj");
|
||||
showPage($("#systemvm_page"), jsonObj);
|
||||
showPage($("#systemvm_page"), jsonObj);
|
||||
hideMiddleMenu();
|
||||
systemvmJsonToDetailsTab(jsonObj);
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user