From 3198ef4eb155ad385587159e1b292312b5ee2652 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 9 Feb 2012 14:25:34 -0800 Subject: [PATCH] bug 13574: Hide 'max projects' from resources status 13574: resolved fixed --- ui/scripts/projects.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/scripts/projects.js b/ui/scripts/projects.js index df35191e141..8960b9a3d1b 100644 --- a/ui/scripts/projects.js +++ b/ui/scripts/projects.js @@ -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 {