bug 13574: Hide 'max projects' from resources

status 13574: resolved fixed
This commit is contained in:
Brian Federle 2012-02-09 14:25:34 -08:00
parent aa9d250280
commit 3198ef4eb1
1 changed files with 8 additions and 5 deletions

View File

@ -51,9 +51,16 @@
projectid: projectID
},
success: function(json) {
var resourceLimits = $.grep(
json.listresourcelimitsresponse.resourcelimit,
function(resourceLimit) {
return resourceLimit.resourcetype != 5;
}
);
args.response.success({
data: $.map(
json.listresourcelimitsresponse.resourcelimit,
resourceLimits,
function(resource) {
var resourceMap = {
0: {
@ -75,10 +82,6 @@
4: {
id: 'template',
label: 'Max. Templates'
},
5: {
id: 'project',
label: 'Max. Projects'
}
};
return {