mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +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({
|
$.ajax({
|
||||||
data: createURL("command=updateVirtualMachine&id="+id+array1.join("")),
|
data: createURL("command=updateVirtualMachine&id="+id+array1.join("")),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(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 = json.updatevirtualmachineresponse;
|
||||||
var jsonObj;
|
|
||||||
$.ajax({
|
|
||||||
data: createURL("command=listVirtualMachines&id="+id),
|
|
||||||
dataType: "json",
|
|
||||||
async: false,
|
|
||||||
success: function(json) {
|
|
||||||
jsonObj = json.listvirtualmachinesresponse.virtualmachine[0];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
vmToMidmenu(jsonObj, $midmenuItem1);
|
vmToMidmenu(jsonObj, $midmenuItem1);
|
||||||
vmToRightPanel($midmenuItem1);
|
vmToRightPanel($midmenuItem1);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user