diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index e9a3d67f72d..f905fa45faa 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1266,9 +1266,9 @@ dataType: "json", async: true, success: function(json) { - // var jid = json.scalevirtualmachineresponse.jobid; - args.response.success(); - /* {_custom: + var jid = json.scalevirtualmachineresponse.jobid; + args.response.success({ + _custom: {jobId: jid, getUpdatedItem: function(json) { return json.queryasyncjobresultresponse.jobresult.virtualmachine; @@ -1277,7 +1277,7 @@ return vmActionfilter; } } - } */ + }); }, error:function(json){ diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 135307b5132..75a8e28861d 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6507,19 +6507,19 @@ dataType: "json", async: true, success: function(json) { - // var jid = json.scalevirtualmachineresponse.jobid; - args.response.success(); - /* {_custom: + var jid = json.scalevirtualmachineresponse.jobid; + args.response.success({ + _custom: {jobId: jid, getUpdatedItem: function(json) { return json.queryasyncjobresultresponse.jobresult.virtualmachine; }, getActionFilter: function() { - return vmActionfilter; + return systemvmActionfilter; } } - } */ + }); }, error:function(json){ @@ -7428,18 +7428,18 @@ dataType: "json", async: true, success: function(json) { - // var jid = json.scalevirtualmachineresponse.jobid; - args.response.success(); - /* {_custom: + var jid = json.scalevirtualmachineresponse.jobid; + args.response.success({ + _custom: {jobId: jid, getUpdatedItem: function(json) { return json.queryasyncjobresultresponse.jobresult.virtualmachine; }, getActionFilter: function() { - return vmActionfilter; + return routerActionfilter; } } - }*/ + }); }, error:function(json){