From 7e8234f7fe5f4812492c02bae75daca54fc7e9f1 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Tue, 2 Jul 2013 15:46:17 +0530 Subject: [PATCH] scale up vm/systemvm/routerVM response handline --- ui/scripts/instances.js | 8 ++++---- ui/scripts/system.js | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) 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){