From e65b77fe33e68a82ca97c552f61dc20bbaa0a9d0 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 3 Jan 2011 12:26:29 -0800 Subject: [PATCH] Bug 6922: skip calling listVM API when a VM in middle menu is clicked. --- ui/scripts/cloud.core.instance.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/scripts/cloud.core.instance.js b/ui/scripts/cloud.core.instance.js index 8427565bee5..053921920c7 100644 --- a/ui/scripts/cloud.core.instance.js +++ b/ui/scripts/cloud.core.instance.js @@ -1502,9 +1502,9 @@ function vmJsonToDetailsTab(){ var $thisTab = $("#right_panel_content").find("#tab_content_details"); $thisTab.find("#tab_container").hide(); $thisTab.find("#tab_spinning_wheel").show(); - - var id = jsonObj.id; - + + /* + var id = jsonObj.id; $.ajax({ data: createURL("command=listVirtualMachines&id="+id), dataType: "json", @@ -1518,7 +1518,8 @@ function vmJsonToDetailsTab(){ } } }); - + */ + resetViewConsoleAction(jsonObj, $thisTab); setVmStateInRightPanel(jsonObj.state, $thisTab.find("#state")); $thisTab.find("#ipAddress").text(fromdb(jsonObj.ipaddress));