mirror of https://github.com/morpheus65535/bazarr
WIP
This commit is contained in:
parent
5dba7a4181
commit
50c5aa96f3
|
@ -426,7 +426,7 @@
|
||||||
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId"),
|
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId"),
|
||||||
tvdbid: seriesDetails['tvdbId']
|
tvdbid: seriesDetails['tvdbId']
|
||||||
};
|
};
|
||||||
var cell = $(this).closest('td');
|
var cell = $(this).parent();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{{ url_for('api.episodessubtitlesdelete') }}",
|
url: "{{ url_for('api.episodessubtitlesdelete') }}",
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
|
@ -451,7 +451,7 @@
|
||||||
sonarrEpisodeId: $(this).attr('data-sonarrepisodeid'),
|
sonarrEpisodeId: $(this).attr('data-sonarrepisodeid'),
|
||||||
title: seriesDetails['title']
|
title: seriesDetails['title']
|
||||||
};
|
};
|
||||||
var cell = $(this).closest('td');
|
var cell = $(this).parent();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{{ url_for('api.episodessubtitlesdownload') }}",
|
url: "{{ url_for('api.episodessubtitlesdownload') }}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
@ -588,7 +588,8 @@
|
||||||
sonarrEpisodeId: $(this).attr('data-sonarrepisodeid'),
|
sonarrEpisodeId: $(this).attr('data-sonarrepisodeid'),
|
||||||
title: seriesDetails['title']
|
title: seriesDetails['title']
|
||||||
};
|
};
|
||||||
var cell = $(this).closest('td');
|
var cell = $(this).parent()
|
||||||
|
;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{{ url_for('api.episodessubtitlesmanualdownload') }}",
|
url: "{{ url_for('api.episodessubtitlesmanualdownload') }}",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
@ -745,6 +746,12 @@
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.data.length) {
|
if (data.data.length) {
|
||||||
$('#episodes').DataTable().row(rowId).data(data.data[0]);
|
$('#episodes').DataTable().row(rowId).data(data.data[0]);
|
||||||
|
if ($('#episodes').DataTable().row(rowId).child.isShown()) {
|
||||||
|
$('#episodes').DataTable().draw('page');
|
||||||
|
$('#episodes').DataTable().row(rowId).child.show();
|
||||||
|
} else {
|
||||||
|
$('#episodes').DataTable().draw('page');
|
||||||
|
}
|
||||||
$('[data-toggle="tooltip"]').tooltip({html: true});
|
$('[data-toggle="tooltip"]').tooltip({html: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue