From e80cb4879ebdc1abdfda8c09d53f2fa120606662 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 13 Oct 2010 19:29:05 -0700 Subject: [PATCH] new UI - fix a bug that dashboard doesn't get highlighted when being clicked. --- ui/new/index.jsp | 2 +- ui/new/scripts/cloud.core2.init.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/new/index.jsp b/ui/new/index.jsp index 1ab0e590e59..fd8a82f46bf 100644 --- a/ui/new/index.jsp +++ b/ui/new/index.jsp @@ -527,7 +527,7 @@ long milliseconds = new Date().getTime();
-
+
System
diff --git a/ui/new/scripts/cloud.core2.init.js b/ui/new/scripts/cloud.core2.init.js index 82a97c89d92..cf6cb9657c5 100644 --- a/ui/new/scripts/cloud.core2.init.js +++ b/ui/new/scripts/cloud.core2.init.js @@ -101,7 +101,12 @@ $(document).ready(function() { return false; }); - $("#leftmenu_dashboard").bind("click", function(event) { + $("#leftmenu_dashboard").bind("click", function(event) { + if(selected_leftmenu_id != null && selected_leftmenu_id.length > 0) + $("#"+selected_leftmenu_id).removeClass("selected"); + selected_leftmenu_id = "leftmenu_dashboard"; + $(this).addClass("selected"); + hideMiddleMenu(); $("#right_panel").load("jsp/dashboard.jsp", function(){ afterLoadDashboardJSP();