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/55d31763 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/55d31763 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/55d31763 Branch: refs/heads/master Commit: 55d317633273a5a66e5d08e7f7ac0da7f3cb38f6 Parents: e95ddb6 Author: Pranav Saxena <pranav.sax...@citrix.com> Authored: Tue May 28 15:39:48 2013 +0530 Committer: Pranav Saxena <pranav.sax...@citrix.com> Committed: Thu May 30 21:57:13 2013 +0530 ---------------------------------------------------------------------- ui/scripts/system.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/55d31763/ui/scripts/system.js ---------------------------------------------------------------------- diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 1ee2ab2..815ed99 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -8892,14 +8892,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)); } });