From 13f059d07e95db0af8fd0009dbc3c45b52ca9835 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 9 Feb 2012 10:34:25 -0800 Subject: [PATCH] bug 13534: template page - remove "All" drop down choice from regular user UI --- ui/scripts/templates.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 78599461e35..1303646bc15 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -14,7 +14,15 @@ id: 'templates', label: 'Templates', filters: { - all: { label: 'All' }, + all: { + preFilter: function(args) { + if (isAdmin() || isDomainAdmin()) + return true; + else + return false; + }, + label: 'All' + }, mine: { label: 'Mine' }, featured: { label: 'Featured' }, community: { label: 'Community' }