From 1a6da64b6ba53f5b0b40cc5e1288ab01d2b757ea Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Feb 2012 14:36:26 +0530 Subject: [PATCH] add enableImport flag to VideoEditor --- source/Ox.UI/js/Video/Ox.VideoEditor.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index 6032ccb0..027a03cb 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -29,6 +29,7 @@ Ox.VideoEditor = function(options, self) { cuts: [], duration: 0, enableDownload: false, + enableImport: false, enableSubtitles: false, find: '', fps: 25, @@ -429,9 +430,10 @@ Ox.VideoEditor = function(options, self) { {id: 'downloadVideo', title: 'Download Video...', disabled: !self.options.enableDownload }, {id: 'downloadSelection', title: 'Download Selection...', disabled: !self.options.enableDownload}, {id: 'embedSelection', title: 'Embed Selection...'}, - {}, - {id: 'importAnnotations', title: 'Import Annotations...'}, - + self.options.enableImport ? [ + {}, + {id: 'importAnnotations', title: 'Import Annotations...'}, + ] : [], ], self.options.posterFrameControls ? [ {},