in video editor, rename 'posterFrameControls' option to 'enableSetPosterFrame', always include 'Go to Poster Frame' menu entry, and correctly enable/disable 'Set Poster Frame' menu entry

This commit is contained in:
rlx 2012-04-23 09:53:29 +00:00
parent 771b15c25a
commit c0c4031825

View file

@ -32,6 +32,7 @@ Ox.VideoEditor = function(options, self) {
duration: 0,
enableDownload: false,
enableImport: false,
enableSetPosterFrame: false,
enableSubtitles: false,
find: '',
fps: 25,
@ -45,7 +46,6 @@ Ox.VideoEditor = function(options, self) {
out: 0,
position: 0,
posterFrame: 0,
posterFrameControls: false,
resolution: 0,
selected: '',
showAnnotations: false,
@ -482,12 +482,10 @@ Ox.VideoEditor = function(options, self) {
{},
{id: 'importAnnotations', title: 'Import Annotations...'}
] : [],
self.options.posterFrameControls ? [
[
{},
{id: 'gotoPosterFrame', title: 'Go to Poster Frame'},
{id: 'setPosterFrame', title: 'Set Poster Frame'}
] : [],
[
{id: 'setPosterFrame', title: 'Set Poster Frame', disabled: !self.options.enableSetPosterFrame},
{},
{id: 'keyboard', title: 'Keyboard Shortcuts...', keyboard: 'h'}
]