From ee972db72ba34a34244629029d20dc8a1b3cc67b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 9 Sep 2011 16:23:47 -0700 Subject: [PATCH] bug 10264: cloudStack - dashboard - fix a bug that "more" icon didn't work when there were no zones. --- ui/scripts/cloud.core.dashboard.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/scripts/cloud.core.dashboard.js b/ui/scripts/cloud.core.dashboard.js index 084afddf840..34d24211972 100644 --- a/ui/scripts/cloud.core.dashboard.js +++ b/ui/scripts/cloud.core.dashboard.js @@ -21,7 +21,13 @@ function afterLoadDashboardJSP() { if (isAdmin()) { var $thisTab = showDashboard("dashboard_admin"); - + + $thisTab.find("#general_alerts").find("#more_icon").unbind("click").bind("click", function(event) { + $("#leftmenu_events").click(); + $("#leftmenu_alert").click(); + return false; + }); + var sessionExpired = false; var zones = null; var noZones = false; @@ -201,13 +207,7 @@ function afterLoadDashboardJSP() { } } }); - - $("#general_alerts").find("#more_icon").unbind("click").bind("click", function(event) { - $("#leftmenu_events").click(); - $("#leftmenu_alert").click(); - return false; - }); - + // Hosts Alerts $.ajax({ data: createURL("command=listHosts&state=Alert"),