1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update subtitle download setting

This commit is contained in:
Luke Pulverenti 2016-03-19 18:31:00 -04:00
parent 90ac504440
commit 45cf1d8430
5 changed files with 25 additions and 29 deletions

View file

@ -95,6 +95,8 @@
html += '</a>';
}
$('#childrenContent', page).html(html);
}
function loadPrograms(page, channelId) {
@ -109,7 +111,6 @@
}).then(function (result) {
renderPrograms(page, result);
Dashboard.hideLoadingMsg();
});
}

View file

@ -419,6 +419,25 @@
});
});
window.WizardLibraryPage = {
next: function () {
Dashboard.showLoadingMsg();
var apiClient = ApiClient;
apiClient.ajax({
type: "POST",
url: apiClient.getUrl('System/Configuration/MetadataPlugins/Autoset')
}).then(function () {
Dashboard.hideLoadingMsg();
Dashboard.navigate('wizardsettings.html');
});
}
};
pageClassOn('pageshow', "mediaLibraryPage", function () {
var page = this;
@ -426,30 +445,6 @@
});
})();
var WizardLibraryPage = {
next: function () {
Dashboard.showLoadingMsg();
var apiClient = ApiClient;
apiClient.ajax({
type: "POST",
url: apiClient.getUrl('System/Configuration/MetadataPlugins/Autoset')
}).then(function () {
Dashboard.hideLoadingMsg();
Dashboard.navigate('wizardsettings.html');
});
}
};
(function ($, document, window) {
pageIdOn('pageshow', "mediaLibraryPage", function () {
var page = this;

View file

@ -5,7 +5,7 @@
$('#chkSubtitlesMovies', page).checked(config.DownloadMovieSubtitles);
$('#chkSubtitlesEpisodes', page).checked(config.DownloadEpisodeSubtitles);
$('#chkSkipIfGraphicalSubsPresent', page).checked(config.SkipIfGraphicalSubtitlesPresent);
$('#chkSkipIfGraphicalSubsPresent', page).checked(config.SkipIfEmbeddedSubtitlesPresent);
$('#chkSkipIfAudioTrackPresent', page).checked(config.SkipIfAudioTrackMatches);
$('#txtOpenSubtitleUsername', page).val(config.OpenSubtitlesUsername);
@ -48,7 +48,7 @@
config.DownloadMovieSubtitles = $('#chkSubtitlesMovies', form).checked();
config.DownloadEpisodeSubtitles = $('#chkSubtitlesEpisodes', form).checked();
config.SkipIfGraphicalSubtitlesPresent = $('#chkSkipIfGraphicalSubsPresent', form).checked();
config.SkipIfEmbeddedSubtitlesPresent = $('#chkSkipIfGraphicalSubsPresent', form).checked();
config.SkipIfAudioTrackMatches = $('#chkSkipIfAudioTrackPresent', form).checked();
config.OpenSubtitlesUsername = $('#txtOpenSubtitleUsername', form).val();