fix #2671 (can't enable subs in editor view if loaded disabled)

This commit is contained in:
rolux 2015-02-11 14:24:56 +01:00
parent 547ce17f81
commit cb3d0e9cd8

View file

@ -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();