cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject [3/5] git commit: updated refs/heads/4.3 to ec823db
Date Thu, 03 Jul 2014 09:21:55 GMT
[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 <w.zhou@leaseweb.com>
Authored: Thu Jul 3 11:09:11 2014 +0200
Committer: Wei Zhou <w.zhou@leaseweb.com>
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;
+                                                    }
                                                 }
                                             })
                                         }


Mime
View raw message