movie/episodes template: properly escape single quotes for title attribute

pull/292/head
panni 6 years ago
parent 6c822655c4
commit a1677bf9b6

@ -400,7 +400,7 @@
hi: $(this).attr("data-hi"),
sonarrSeriesId: $(this).attr('data-sonarrSeriesId'),
sonarrEpisodeId: $(this).attr('data-sonarrEpisodeId'),
title: "{{!details[0]}}"
title: '{{!details[0].replace("'", "\\'")}}'
};
$('#loader_text').text("Downloading subtitle to disk...");
@ -475,7 +475,7 @@
hi: hi,
sonarrSeriesId: sonarrSeriesId,
sonarrEpisodeId: sonarrEpisodeId,
title: "{{!details[0]}}"
title: '{{!details[0].replace("'", "\\'")}}'
};
$('#search_result').DataTable( {

@ -348,7 +348,7 @@
hi: $(this).attr("data-hi"),
radarrId: $(this).attr("data-radarrId"),
tmdbid: {{tmdbid}},
title: "{{!details[0]}}"
title: '{{!details[0].replace("'", "\\'")}}'
};
$('#loader_text').text("Downloading subtitle to disk...");
@ -418,7 +418,7 @@
language: language,
hi: hi,
radarrId: radarrId,
title: "{{!details[0]}}"
title: '{{!details[0].replace("'", "\\'")}}'
};
$('#search_result').DataTable( {

Loading…
Cancel
Save