Displaying ACL name as None if acl is not associated with a tier

This commit is contained in:
Pranav Saxena 2013-06-04 20:22:02 +05:30
parent b5148af0c6
commit 00715c9b86
1 changed files with 12 additions and 1 deletions

View File

@ -2746,7 +2746,8 @@
async: true,
success: function(json) {
var jsonObj = json.listnetworksresponse.network[0];
if(jsonObj.aclid != null){
$.ajax({
url:createURL("listNetworkACLLists&id=" + jsonObj.aclid),
dataType:"json",
@ -2763,6 +2764,16 @@
args.response.error(parseXMLHttpResponse(json));
}
});
}
else{
args.response.success({
actionFilter: cloudStack.actionFilter.guestNetwork,
data:$.extend(jsonObj,{aclname:'None'})
});
}
}
});
}