Video Annotation Panel: Add 'Link to Selection' option

This commit is contained in:
rolux 2014-06-06 14:10:06 +03:00
parent f03393f1c7
commit 36e4919138

View file

@ -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') {