mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
new UI - fix a bug that some menu at left navigation disappear after refresh page.
This commit is contained in:
parent
d9ba39bd8b
commit
8da65435be
@ -468,8 +468,14 @@ $(document).ready(function() {
|
|||||||
$("#main_username").text(g_username);
|
$("#main_username").text(g_username);
|
||||||
$("#leftmenu_dashboard").click();
|
$("#leftmenu_dashboard").click();
|
||||||
if (isAdmin()) {
|
if (isAdmin()) {
|
||||||
|
$("#leftmenu_domain, #leftmenu_account, #leftmenu_system").show();
|
||||||
$("#launch_test").show();
|
$("#launch_test").show();
|
||||||
} else {
|
}
|
||||||
|
else if(isDomainAdmin()){
|
||||||
|
$("#leftmenu_domain, #leftmenu_account").show();
|
||||||
|
$("#launch_test").hide();
|
||||||
|
}
|
||||||
|
else{ //isUser() == true
|
||||||
$("#launch_test").hide();
|
$("#launch_test").hide();
|
||||||
}
|
}
|
||||||
$("#main").show();
|
$("#main").show();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user