edit panel: fix sort options

This commit is contained in:
rolux 2014-02-05 13:37:13 +00:00
parent f8ba4ed48f
commit 336acb326f

View file

@ -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)])