fix subtitle toggle in edit panel too

This commit is contained in:
j 2016-03-05 16:27:29 +05:30
parent ab21bdbe25
commit cb875c86df

View file

@ -300,6 +300,16 @@ Ox.VideoEditPanel = function(options, self) {
}); });
that.triggerEvent('subtitles', data); 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) { volume: function(data) {
that.triggerEvent('volume', data); that.triggerEvent('volume', data);
} }