From 4660e8f596421fd92988bc2925f3ce349f14798b Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 6 Feb 2014 14:53:53 +0000 Subject: [PATCH] fix a bug in edit panel --- 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 948c1a506..9d1d7b7d5 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -120,9 +120,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: '+'} - ] + sortOptions: ( + edit.type == 'static' + ? [{id: 'index', title: Ox._('Sort Manually'), operator: '+'}] + : [] + ) .concat( pandora.site.clipKeys.map(function(key) { return Ox.extend(Ox.clone(key), {