mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update tv guide
This commit is contained in:
parent
86dea1fa4c
commit
7a39655dca
12 changed files with 81 additions and 30 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
$('#chkMovies', page).checked(config.EnableMovieProviders).checkboxradio("refresh");
|
||||
|
||||
$('#txtRecordingPath', page).val(config.RecordingPath || '');
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
|
@ -22,6 +24,7 @@
|
|||
|
||||
config.GuideDays = $('#selectGuideDays', form).val() || null;
|
||||
config.EnableMovieProviders = $('#chkMovies', form).checked();
|
||||
config.RecordingPath = $('#txtRecordingPath', form).val() || null;
|
||||
|
||||
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
@ -32,8 +35,26 @@
|
|||
|
||||
$(document).on('pageinitdepends', "#liveTvSettingsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('.liveTvSettingsForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
$('#btnSelectRecordingPath', page).on("click.selectDirectory", function () {
|
||||
|
||||
var picker = new DirectoryBrowser(page);
|
||||
|
||||
picker.show({
|
||||
|
||||
callback: function (path) {
|
||||
|
||||
if (path) {
|
||||
$('#txtRecordingPath', page).val(path);
|
||||
}
|
||||
picker.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvSettingsPage", function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue