cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject git commit: updated refs/heads/UI-explicitDedication to b3e3364
Date Tue, 28 May 2013 10:26:44 GMT
Updated Branches:
  refs/heads/UI-explicitDedication 8e5e7602f -> b3e336422


explicit dedication - POD UI-API detail view integration


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

Branch: refs/heads/UI-explicitDedication
Commit: b3e336422b430692fc47b50a60fa3ca0bc3e9cfd
Parents: 8e5e760
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Tue May 28 15:39:48 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Tue May 28 15:39:48 2013 +0530

----------------------------------------------------------------------
 ui/scripts/system.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b3e33642/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index a3ba39d..8c11ff8 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -8357,14 +8357,17 @@
                                                     dataType:"json",
                                                     async:false,
                                                     success:function(json){
-                                                        var podItem = json.listdedicatedpodsresponse
? json.listdedicatedpodsresponse.dedicatedpod[0]:[];
+                                                         if(json.listdedicatedpodsresponse.dedicatedpod
!= undefined){
+                                                            var podItem = json.listdedicatedpodsresponse.dedicatedpod[0];
                                                         if (podItem.domainid != null) {
                                                             $.extend(item, podItem , { isdedicated:
'Yes' });
-                                                   }
+                                                        }
+                                                    }
+                                                      else
+                                                         $.extend(item ,{ isdedicated: 'No'
})
                                                  },
                                                  error:function(json){
-                                                        $.extend(item ,{ isdedicated: 'No'
})
-
+                                                     args.response.error(parseXMLHttpResponse(XMLHttpResponse));
 
                                                  }
                                            });


Mime
View raw message