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 <[email protected]> Authored: Tue May 28 15:39:48 2013 +0530 Committer: Pranav Saxena <[email protected]> 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)); } });
