From b9709f67025dfc13fa372915944d05129fc83d7d Mon Sep 17 00:00:00 2001 From: j Date: Fri, 16 Mar 2018 13:09:12 +0530 Subject: [PATCH] trigger selectannotation in ClipsPanel/VideoEditPanel --- source/UI/js/Video/ClipPanel.js | 7 +++++++ source/UI/js/Video/VideoEditPanel.js | 3 +++ 2 files changed, 10 insertions(+) diff --git a/source/UI/js/Video/ClipPanel.js b/source/UI/js/Video/ClipPanel.js index 3776b332..81d202ee 100644 --- a/source/UI/js/Video/ClipPanel.js +++ b/source/UI/js/Video/ClipPanel.js @@ -442,6 +442,13 @@ Ox.ClipPanel = function(options, self) { showUsers: self.options.showUsers, sort: self.options.annotationsSort, width: self.options.width + }).bindEvent({ + select: function(data) { + that.triggerEvent('selectannotation', data); + }, + open: function(data) { + // .. + } }); $list.size = function() { $list.options({ diff --git a/source/UI/js/Video/VideoEditPanel.js b/source/UI/js/Video/VideoEditPanel.js index 2845b8ef..66a345d5 100644 --- a/source/UI/js/Video/VideoEditPanel.js +++ b/source/UI/js/Video/VideoEditPanel.js @@ -430,6 +430,9 @@ Ox.VideoEditPanel = function(options, self) { self.options.selected = data.ids; that.triggerEvent('select', data); }, + selectannotation: function(data) { + that.triggerEvent('selectannotation', data); + }, sort: function(data) { self.options.sort = data; that.triggerEvent('sort', data);