From be702c5d43598fb67df6a96c869ea3c67d89b696 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 30 Jun 2012 20:04:18 +0000 Subject: [PATCH] update sortSelect, sortKeys are now pre-filtered --- static/js/pandora/sortSelect.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/static/js/pandora/sortSelect.js b/static/js/pandora/sortSelect.js index a1c5dfbf..1f7eaef1 100644 --- a/static/js/pandora/sortSelect.js +++ b/static/js/pandora/sortSelect.js @@ -15,12 +15,7 @@ pandora.ui.sortSelect = function(isNavigationView) { if (!pandora.user.ui.item) { items = [].concat( items, - pandora.site.sortKeys.filter(function(key) { - return Ox.getIndexById(items, key.id) == -1 && ( - !key.capability - || pandora.site.capabilities[key.capability][pandora.user.level] - ); - }).map(function(key) { + pandora.site.sortKeys.map(function(key) { return Ox.extend(Ox.clone(key), { title: 'Sort by ' + key.title });