AnnotationPanel: allow sorting by creation time

fixes #2865
This commit is contained in:
Will Thompson 2015-12-14 12:16:13 +00:00
parent a6774f331c
commit b0853447d1
2 changed files with 4 additions and 2 deletions

View file

@ -520,7 +520,8 @@ Ox.AnnotationFolder = function(options, self) {
return ({
duration: ['-duration', '+in', self.options.type == 'text' ? '+created' : '+value'],
position: ['+in', '+duration', self.options.type == 'text' ? '+created' : '+value'],
text: ['+value', '+in', '+duration']
text: ['+value', '+in', '+duration'],
created: ['+created', '+in', '+duration', '+value']
})[self.options.sort];
}

View file

@ -462,7 +462,8 @@ Ox.AnnotationPanel = function(options, self) {
{group: 'sort', min: 1, max: 1, items: [
{id: 'position', title: Ox._('By Position'), checked: self.options.sort == 'position'},
{id: 'duration', title: Ox._('By Duration'), checked: self.options.sort == 'duration'},
{id: 'text', title: Ox._('By Text'), checked: self.options.sort == 'text'}
{id: 'text', title: Ox._('By Text'), checked: self.options.sort == 'text'},
{id: 'created', title: Ox._('By Creation Time'), checked: self.options.sort == 'created'}
]}
],
self.languages.length > 1 ? [