cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject [56/67] [abbrv] git commit: updated refs/heads/pluggable_vm_snapshot to d73f75a
Date Fri, 11 Oct 2013 01:01:59 GMT
CLOUDSTACK-3154: UI > Infrastructure > zone detail > remove VMware datacenter action
> fix a bug that incorrect property name was used to retrieve embedded object in API response.


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

Branch: refs/heads/pluggable_vm_snapshot
Commit: 0b69e890e07cb788e8475cdbcf3bb50e54e6e869
Parents: d1dd85a
Author: Jessica Wang <jessicawang@apache.org>
Authored: Wed Oct 9 14:12:06 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Wed Oct 9 14:16:17 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0b69e890/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index f5ed9a2..d197d34 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -5709,10 +5709,14 @@
                                                 url: createURL('removeVmwareDc'),
                                                 data: data,
                                                 success: function(json) {
-                                                    var item = json.updatezoneresponse.zone;
-                                                    args.response.success({
-                                                        actionFilter: zoneActionfilter,
-                                                        data: item
+                                                	delete args.context.physicalResources[0].vmwaredcName;
+                                                	delete args.context.physicalResources[0].vmwaredcVcenter;
+                                                	delete args.context.physicalResources[0].vmwaredcId;
+                                                	
+                                                	selectedZoneObj = args.context.physicalResources[0];
+                                                	
+                                                    args.response.success({             
                                          
+                                                        data: args.context.physicalResources[0]
                                                     });
                                                 }
                                             });


Mime
View raw message