bug 12859: cloudstack 3.0 new UI - systemVM page - migrate action - fix a bug that passed an empty virtualMachineId to API.

This commit is contained in:
Jessica Wang 2012-01-06 10:42:33 -08:00
parent a4cabad669
commit 205ffdb792
1 changed files with 3 additions and 11 deletions

View File

@ -1679,11 +1679,7 @@
}
}
},
action: function(args) {
if(args.data.hostId == null) {
args.response.error("Host field is required");
return;
}
action: function(args) {
$.ajax({
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.context.routers[0].id),
dataType: "json",
@ -3586,13 +3582,9 @@
}
}
},
action: function(args) {
if(args.data.hostId == null) {
args.response.error("Host field is required");
return;
}
action: function(args) {
$.ajax({
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.data.id),
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.context.systemVMs[0].id),
dataType: "json",
async: true,
success: function(json) {