cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/master to 5b221c2
Date Tue, 26 Aug 2014 21:05:00 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master eee93aef3 -> 5b221c212


CLOUDSTACK-7435: UI > instance page > assign instance to another account > fix an
error "TypeError: json.virtualmachine is undefined [Break On This Error] var item = json.virtualmachine.virtualmachine;"
that showed after the action is clicked.


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

Branch: refs/heads/master
Commit: 5b221c21265f425bc37cbd5fcfd9ec58ba5bda43
Parents: eee93ae
Author: Jessica Wang <jessicawang@apache.org>
Authored: Tue Aug 26 14:01:44 2014 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Tue Aug 26 14:04:43 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5b221c21/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 4d250ef..d3eb2a4 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -1629,14 +1629,14 @@
                         },
                         action: function(args) {                            
                             $.ajax({
-                                url: createURL('assignVirtualMachine&virtualmachine'),
+                                url: createURL('assignVirtualMachine'),
                                 data: {
                                     virtualmachineid: args.context.instances[0].id,
                                     domainid: args.data.domainid,
                                     account: args.data.account
                                 },                                
                                 success: function(json) {   
-                                    var item = json.virtualmachine.virtualmachine;      
                              
+                                    var item = json.assignvirtualmachineresponse.virtualmachine;
                                    
                                     args.response.success({
                                         data: item
                                     });                                    


Mime
View raw message