From 08dc8f2beac9a908e441984ac8b87a7d002acd6f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 21 May 2021 20:38:25 +0100 Subject: [PATCH] overwrite subtitlesTrack --- static/js/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/editor.js b/static/js/editor.js index 28d3b5bae..bbe87b251 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -98,10 +98,10 @@ pandora.ui.editor = function(data) { showLayers: Ox.clone(ui.showLayers), showUsers: pandora.site.annotations.showUsers, subtitles: data.subtitles, - subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language), + subtitlesDefaultTrack: data.subtitlesDefaultTrack || Ox.getLanguageNameByCode(pandora.site.language), subtitlesLayer: data.subtitlesLayer, subtitlesOffset: ui.videoSubtitlesOffset, - subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language), + subtitlesTrack: data.subtitlesTrack || Ox.getLanguageNameByCode(pandora.site.language), timeline: ui.videoTimeline, timelines: pandora.site.timelines, video: data.video,