fix #2671 (can't enable subs in editor view if loaded disabled)
This commit is contained in:
parent
547ce17f81
commit
cb3d0e9cd8
1 changed files with 1 additions and 2 deletions
|
@ -698,11 +698,10 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
||||||
} else if (id == 'subtitlesTrack') {
|
} else if (id == 'subtitlesTrack') {
|
||||||
enableSubtitles = !!data.checked[0].id;
|
enableSubtitles = !!data.checked[0].id;
|
||||||
if (enableSubtitles != self.options.enableSubtitles) {
|
if (enableSubtitles != self.options.enableSubtitles) {
|
||||||
self.options.enableSubtitles = enableSubtitles;
|
|
||||||
that.triggerEvent('subtitles', {subtitles: enableSubtitles});
|
that.triggerEvent('subtitles', {subtitles: enableSubtitles});
|
||||||
}
|
}
|
||||||
self.options.subtitlesTrack = data.checked[0].id;
|
self.options.subtitlesTrack = data.checked[0].id;
|
||||||
setSubtitlesTrack();
|
setSubtitlesTrack(); // will set self.options.enableSubtitles
|
||||||
} else if (id == 'timeline') {
|
} else if (id == 'timeline') {
|
||||||
self.options.timeline = data.checked[0].id;
|
self.options.timeline = data.checked[0].id;
|
||||||
updateTimelines();
|
updateTimelines();
|
||||||
|
|
Loading…
Reference in a new issue