From fdd4146b22db29e4950177755d9ba122b9476eeb Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 17 Feb 2011 17:16:46 -0800 Subject: [PATCH] bug 8575: when mouse is over middle menu item, show tooltip related to this middle menu item. --- ui/index.jsp | 4 ++-- ui/scripts/cloud.core.instance.js | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ui/index.jsp b/ui/index.jsp index 1a19af6b9ef..e715a4953e6 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -813,10 +813,10 @@
-

+

 

- +  
diff --git a/ui/scripts/cloud.core.instance.js b/ui/scripts/cloud.core.instance.js index a810673d4cb..ed478a994c3 100644 --- a/ui/scripts/cloud.core.instance.js +++ b/ui/scripts/cloud.core.instance.js @@ -1641,8 +1641,13 @@ function vmToMidmenu(jsonObj, $midmenuItem1) { $midmenuItem1.attr("id", getMidmenuId(jsonObj)); var vmName = getVmName(jsonObj.name, jsonObj.displayname); - $midmenuItem1.find("#first_row").text(vmName); - $midmenuItem1.find("#second_row").text(jsonObj.templatename); + $midmenuItem1.find("#first_row").text(vmName); + $midmenuItem1.find("#first_row_container").attr("title", vmName); + + var templateName = fromdb(jsonObj.templatename); + $midmenuItem1.find("#second_row").text(templateName); + $midmenuItem1.find("#second_row_container").attr("title", templateName); + updateVmStateInMidMenu(jsonObj, $midmenuItem1); $midmenuItem1.data("toRightPanelFn", vmToRightPanel);