From 336acb326f32f44d4fd787c4867f34293d437a6f Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 5 Feb 2014 13:37:13 +0000 Subject: [PATCH] edit panel: fix sort options --- static/js/editPanel.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 5032c284..cbaa6ee8 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -121,9 +121,11 @@ pandora.ui.editPanel = function() { showUsers: pandora.site.annotations.showUsers, smallTimelineURL: getSmallTimelineURL(), sort: ui.edits[ui.edit].sort, - sortOptions: [ - {id: 'index', title: Ox._('Sort Manually'), operator: '+'} - ].concat( + sortOptions: ( + edit.type == 'static' + ? [{id: 'index', title: Ox._('Sort Manually'), operator: '+'}] + : [] + ).concat( pandora.site.clipKeys.map(function(key) { return Ox.extend(Ox.clone(key), { title: Ox._(('Sort by Clip {0}'), [Ox._(key.title)])