mirror of https://github.com/apache/cloudstack.git
new UI - clean right panel when different item in middle menu is selected.
This commit is contained in:
parent
6eab10ad47
commit
03728cf9d8
|
|
@ -25,6 +25,7 @@ $(document).ready(function() {
|
|||
selectedItemsInMidMenu[id] = $midmenuItem1;
|
||||
$midmenuItem1.find("#content").addClass("selected");
|
||||
}
|
||||
clearRightPanel();
|
||||
var toRightPanelFn = $midmenuItem1.data("toRightPanelFn");
|
||||
toRightPanelFn($midmenuItem1);
|
||||
}
|
||||
|
|
@ -40,12 +41,6 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
function clearMidMenu() {
|
||||
$("#midmenu_container").empty();
|
||||
$("#midmenu_action_link").hide();
|
||||
$("#midmenu_add_link").hide();
|
||||
}
|
||||
|
||||
var $midmenuItem = $("#midmenu_item");
|
||||
function listMidMenuItems(leftmenuId, commandString, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSP, toMidmenu, toRightPanel) {
|
||||
|
|
|
|||
|
|
@ -512,7 +512,18 @@ function setBooleanField(value, $field) {
|
|||
else
|
||||
$field.find("#icon").removeClass("tick_icon").addClass("cross_icon").show();
|
||||
}
|
||||
|
||||
function clearMidMenu() {
|
||||
$("#midmenu_container").empty();
|
||||
$("#midmenu_action_link").hide();
|
||||
$("#midmenu_add_link").hide();
|
||||
}
|
||||
|
||||
function clearRightPanel() {
|
||||
$("#right_panel_content #action_message_box").hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue