fix a bug in edit panel

This commit is contained in:
rolux 2014-02-06 14:53:53 +00:00
parent 0937c4779a
commit 4660e8f596

View file

@ -120,9 +120,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'
] ? [{id: 'index', title: Ox._('Sort Manually'), operator: '+'}]
: []
)
.concat( .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), {