From a9bbc86fda58d94f3a3bec734f80d86912b5baa0 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Sep 2014 16:43:48 +0200 Subject: [PATCH] enable annotations export in editor --- static/js/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/editor.js b/static/js/editor.js index a8e7fe9a..7be840f2 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -22,6 +22,7 @@ pandora.ui.editor = function(data) { cuts: data.cuts || [], duration: data.duration, enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= data.rightslevel || data.editable, + enableExport: true, enableImport: pandora.site.capabilities.canImportAnnotations[pandora.user.level] || data.editable, enableSetPosterFrame: !pandora.site.media.importFrames && data.editable, enableSubtitles: ui.videoSubtitles, @@ -190,7 +191,7 @@ pandora.ui.editor = function(data) { pandora.$ui.mainMenu.replaceItemMenu(); }, importannotations: function() { - pandora.$ui.importAnnotationsDialog = pandora.ui.importAnnotationsDialog(data.duration).open(); + pandora.$ui.importAnnotationsDialog = pandora.ui.importAnnotationsDialog({duration: data.duration}).open(); }, info: function(data) { pandora.ui.annotationDialog(