From cb3d0e9cd8368f0b5ba22e5e8d01f7b2abb8eb65 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 11 Feb 2015 14:24:56 +0100 Subject: [PATCH] fix #2671 (can't enable subs in editor view if loaded disabled) --- source/UI/js/Video/VideoAnnotationPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/UI/js/Video/VideoAnnotationPanel.js b/source/UI/js/Video/VideoAnnotationPanel.js index ab51c81b..a6b5d3b6 100644 --- a/source/UI/js/Video/VideoAnnotationPanel.js +++ b/source/UI/js/Video/VideoAnnotationPanel.js @@ -698,11 +698,10 @@ Ox.VideoAnnotationPanel = function(options, self) { } else if (id == 'subtitlesTrack') { enableSubtitles = !!data.checked[0].id; if (enableSubtitles != self.options.enableSubtitles) { - self.options.enableSubtitles = enableSubtitles; that.triggerEvent('subtitles', {subtitles: enableSubtitles}); } self.options.subtitlesTrack = data.checked[0].id; - setSubtitlesTrack(); + setSubtitlesTrack(); // will set self.options.enableSubtitles } else if (id == 'timeline') { self.options.timeline = data.checked[0].id; updateTimelines();