mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
new UI - Update VM - related UI change after bug 6489 ("updateVirtualMachine API should return an embedded object on success") is fixed.
This commit is contained in:
parent
e02a8c9d9f
commit
b3d2f7d63f
@ -1148,18 +1148,8 @@ function doEditVM2($actionLink, $detailsTab, $midmenuItem1, $readonlyFields, $ed
|
||||
$.ajax({
|
||||
data: createURL("command=updateVirtualMachine&id="+id+array1.join("")),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
//call listVirtualMachine to get embedded object until bug 6489 ("updateVirtualMachine API should return an embedded object on success") is fixed.
|
||||
var jsonObj;
|
||||
$.ajax({
|
||||
data: createURL("command=listVirtualMachines&id="+id),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
jsonObj = json.listvirtualmachinesresponse.virtualmachine[0];
|
||||
}
|
||||
});
|
||||
|
||||
success: function(json) {
|
||||
var jsonObj = json.updatevirtualmachineresponse;
|
||||
vmToMidmenu(jsonObj, $midmenuItem1);
|
||||
vmToRightPanel($midmenuItem1);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user