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,
|
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)])
|
||||||
|
|
Loading…
Reference in a new issue