From bf6edd62afcb1060ef5cbceb801574161748417d Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 1 Feb 2011 18:09:24 -0800 Subject: [PATCH] Global Settings page - apply new function, bindActionLink(), which solves mouseover issue. --- ui/scripts/cloud.core.globalsetting.js | 13 +++++++++++++ ui/scripts/cloud.core.init.js | 11 +---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ui/scripts/cloud.core.globalsetting.js b/ui/scripts/cloud.core.globalsetting.js index cb4dd9c8a9d..9d912d60eea 100644 --- a/ui/scripts/cloud.core.globalsetting.js +++ b/ui/scripts/cloud.core.globalsetting.js @@ -17,6 +17,19 @@ */ function afterLoadGlobalSettingJSP() { + var $actionLink = $("#right_panel_content #tab_content_details #action_link"); + bindActionLink($actionLink); + /* + $actionLink.bind("mouseover", function(event) { + $(this).find("#action_menu").show(); + return false; + }); + $actionLink.bind("mouseout", function(event) { + $(this).find("#action_menu").hide(); + return false; + }); + */ + populateGlobalSettingGrid(); //actions diff --git a/ui/scripts/cloud.core.init.js b/ui/scripts/cloud.core.init.js index da4db3a4109..368d71406a3 100644 --- a/ui/scripts/cloud.core.init.js +++ b/ui/scripts/cloud.core.init.js @@ -248,16 +248,7 @@ $(document).ready(function() { }); if (currentRightPanelJSP != "jsp/globalsetting.jsp") { $("#right_panel").load("jsp/globalsetting.jsp", function(){ - currentRightPanelJSP = "jsp/globalsetting.jsp"; - var $actionLink = $("#right_panel_content #tab_content_details #action_link"); - $actionLink.bind("mouseover", function(event) { - $(this).find("#action_menu").show(); - return false; - }); - $actionLink.bind("mouseout", function(event) { - $(this).find("#action_menu").hide(); - return false; - }); + currentRightPanelJSP = "jsp/globalsetting.jsp"; afterLoadGlobalSettingJSP(); }); } else {