forked from 0x2620/pandora
edit panel: fix sort options
This commit is contained in:
parent
f8ba4ed48f
commit
336acb326f
1 changed files with 5 additions and 3 deletions
|
@ -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)])
|
||||
|
|
Loading…
Reference in a new issue