mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - when clicking on left menu that is not instance group menu, collapse instance menu.
This commit is contained in:
parent
214646c609
commit
5d98ff7c1e
@ -50,6 +50,7 @@ $(document).ready(function() {
|
|||||||
selected_leftmenu_id = leftmenuId;
|
selected_leftmenu_id = leftmenuId;
|
||||||
$(this).addClass("selected");
|
$(this).addClass("selected");
|
||||||
|
|
||||||
|
clearLeftMenu();
|
||||||
clearMidMenu();
|
clearMidMenu();
|
||||||
|
|
||||||
$("#right_panel").load(rightPanelJSP, function(){
|
$("#right_panel").load(rightPanelJSP, function(){
|
||||||
|
|||||||
@ -518,6 +518,14 @@ function setBooleanField(value, $field) {
|
|||||||
else
|
else
|
||||||
$field.find("#icon").removeClass("tick_icon").addClass("cross_icon").show();
|
$field.find("#icon").removeClass("tick_icon").addClass("cross_icon").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearLeftMenu() {
|
||||||
|
var $arrowIcon = $("#leftmenu_instance_group_header #arrow_icon");
|
||||||
|
if($arrowIcon.hasClass("open") == true) {
|
||||||
|
$arrowIcon.removeClass("open").addClass("close");
|
||||||
|
$("#leftmenu_instance_group_container").empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function clearMidMenu() {
|
function clearMidMenu() {
|
||||||
$("#midmenu_container").empty();
|
$("#midmenu_container").empty();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user