[UI] update vm nic information after add/remove NIC

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fe1cdbd2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fe1cdbd2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fe1cdbd2

Branch: refs/heads/4.3
Commit: fe1cdbd2356edda87b9e66323c9b294f853034b1
Parents: 9b7ac9d
Author: Wei Zhou <[email protected]>
Authored: Thu Jul 3 11:09:11 2014 +0200
Committer: Wei Zhou <[email protected]>
Committed: Thu Jul 3 11:20:30 2014 +0200

----------------------------------------------------------------------
 ui/scripts/instances.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fe1cdbd2/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 8920473..7ff75a2 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -1962,7 +1962,10 @@
                                         success: function(json) {
                                             args.response.success({
                                                 _custom: {
-                                                    jobId: 
json.addnictovirtualmachineresponse.jobid
+                                                    jobId: 
json.addnictovirtualmachineresponse.jobid,
+                                                    getUpdatedItem: 
function(json) {
+                                                        return 
json.queryasyncjobresultresponse.jobresult.virtualmachine;
+                                                    }
                                                 }
                                             });
                                         }
@@ -2028,7 +2031,10 @@
                                         success: function(json) {
                                             args.response.success({
                                                 _custom: {
-                                                    jobId: 
json.removenicfromvirtualmachineresponse.jobid
+                                                    jobId: 
json.removenicfromvirtualmachineresponse.jobid,
+                                                    getUpdatedItem: 
function(json) {
+                                                        return 
json.queryasyncjobresultresponse.jobresult.virtualmachine;
+                                                    }
                                                 }
                                             })
                                         }

Reply via email to