diff --git a/ui/new/scripts/cloud.core2.router.js b/ui/new/scripts/cloud.core2.router.js index 4cee5075a72..7135c823972 100644 --- a/ui/new/scripts/cloud.core2.router.js +++ b/ui/new/scripts/cloud.core2.router.js @@ -37,19 +37,9 @@ function routerJsonToDetailsTab(jsonObj) { $detailsTab.find("#hostname").text(fromdb(jsonObj.hostname)); $detailsTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain)); $detailsTab.find("#account").text(fromdb(jsonObj.account)); - setDateField(jsonObj.created, $detailsTab.find("#created")); + setDateField(jsonObj.created, $detailsTab.find("#created")); - var $actionLink = $detailsTab.find("#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; - }); - - var $actionMenu = $actionLink.find("#action_menu"); + var $actionMenu = $("#right_panel_content #tab_content_details #action_link #action_menu"); $actionMenu.find("#action_list").empty(); if (jsonObj.state == 'Running') { diff --git a/ui/new/scripts/cloud.core2.volume.js b/ui/new/scripts/cloud.core2.volume.js index ae288759623..f09468267b2 100644 --- a/ui/new/scripts/cloud.core2.volume.js +++ b/ui/new/scripts/cloud.core2.volume.js @@ -63,19 +63,7 @@ function volumeJsonToDetailsTab(jsonObj){ $detailsTab.find("#vm_name").text(getVmName(jsonObj.vmname, jsonObj.vmdisplayname) + " (" + jsonObj.vmstate + ")"); setDateField(jsonObj.created, $detailsTab.find("#created")); - - /* - var $actionLink = $detailsTab.find("#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; - }); - */ - + //actions *** var $actionMenu = $("#right_panel_content #tab_content_details #action_link #action_menu"); $actionMenu.find("#action_list").empty();