From 36e49191383435512eabc4509b0bbf0d08d26303 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 6 Jun 2014 14:10:06 +0300 Subject: [PATCH] Video Annotation Panel: Add 'Link to Selection' option --- source/Ox.UI/js/Video/VideoAnnotationPanel.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/Ox.UI/js/Video/VideoAnnotationPanel.js b/source/Ox.UI/js/Video/VideoAnnotationPanel.js index d9e7cad1..0b63298e 100644 --- a/source/Ox.UI/js/Video/VideoAnnotationPanel.js +++ b/source/Ox.UI/js/Video/VideoAnnotationPanel.js @@ -589,6 +589,7 @@ Ox.VideoAnnotationPanel = function(options, self) { {id: 'downloadVideo', title: Ox._('Download Video...'), disabled: !self.options.enableDownload }, {id: 'downloadSelection', title: Ox._('Download Selection...'), disabled: !self.options.enableDownload}, {id: 'embedSelection', title: Ox._('Embed Selection...')}, + {id: 'linkToSelection', title: Ox._('Link to Selection...')}, {}, {id: 'importAnnotations', title: Ox._('Import Annotations...'), disabled: !self.options.enableImport}, {id: 'exportAnnotations', title: Ox._('Export Annotations...'), disabled: !self.options.enableExport}, @@ -627,6 +628,11 @@ Ox.VideoAnnotationPanel = function(options, self) { 'in': self.options['in'], out: self.options.out }); + } else if (id == 'linkToSelection') { + that.triggerEvent('linktoselection', { + 'in': self.options['in'], + out: self.options.out + }); } else if (id == 'importAnnotations') { that.triggerEvent('importannotations'); } else if (id == 'exportAnnotations') {