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

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

Loading…
Cancel
Save