From cb875c86dfcb0078362462bf4fa6afcab0921c5d Mon Sep 17 00:00:00 2001 From: j Date: Sat, 5 Mar 2016 16:27:29 +0530 Subject: [PATCH] fix subtitle toggle in edit panel too --- source/UI/js/Video/VideoEditPanel.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/UI/js/Video/VideoEditPanel.js b/source/UI/js/Video/VideoEditPanel.js index ed458fd1..fc4ea93b 100644 --- a/source/UI/js/Video/VideoEditPanel.js +++ b/source/UI/js/Video/VideoEditPanel.js @@ -300,6 +300,16 @@ Ox.VideoEditPanel = function(options, self) { }); that.triggerEvent('subtitles', data); }, + subtitlestrack: function(data) { + var enableSubtitles = !!data.track; + if (enableSubtitles != self.options.enableSubtitles) { + self.options.enableSubtitles = enableSubtitles; + that.triggerEvent('subtitles', {subtitles: enableSubtitles}); + } + self.$timeline.options({ + subtitles: enableSubtitles ? self.options.subtitles : [] + }); + }, volume: function(data) { that.triggerEvent('volume', data); }