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, showUsers: pandora.site.annotations.showUsers,
smallTimelineURL: getSmallTimelineURL(), smallTimelineURL: getSmallTimelineURL(),
sort: ui.edits[ui.edit].sort, sort: ui.edits[ui.edit].sort,
sortOptions: [ sortOptions: (
{id: 'index', title: Ox._('Sort Manually'), operator: '+'} edit.type == 'static'
].concat( ? [{id: 'index', title: Ox._('Sort Manually'), operator: '+'}]
: []
).concat(
pandora.site.clipKeys.map(function(key) { pandora.site.clipKeys.map(function(key) {
return Ox.extend(Ox.clone(key), { return Ox.extend(Ox.clone(key), {
title: Ox._(('Sort by Clip {0}'), [Ox._(key.title)]) title: Ox._(('Sort by Clip {0}'), [Ox._(key.title)])