mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
fa050a3b08
commit
f6b3dd3b16
10 changed files with 103 additions and 28 deletions
|
@ -56,13 +56,13 @@
|
|||
|
||||
return appStorage.getItem('enableFullScreen') == 'true';
|
||||
},
|
||||
enableSyncToExternalStorage: function (val) {
|
||||
syncPath: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('enableSyncToExternalStorage', val.toString());
|
||||
update('syncPath', val);
|
||||
}
|
||||
|
||||
return appStorage.getItem('enableSyncToExternalStorage') != 'false';
|
||||
return appStorage.getItem('syncPath');
|
||||
},
|
||||
|
||||
displayLanguage: function (val) {
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
function loadForm(page, user) {
|
||||
|
||||
page.querySelector('.chkSyncToExternalCard').checked = AppSettings.enableSyncToExternalStorage();
|
||||
page.querySelector('#txtSyncPath').value = AppSettings.syncPath();
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
function saveUser(page, user) {
|
||||
|
||||
AppSettings.enableSyncToExternalStorage(page.querySelector('.chkSyncToExternalCard').checked);
|
||||
AppSettings.syncPath(page.querySelector('#txtSyncPath').value);
|
||||
Dashboard.hideLoadingMsg();
|
||||
Dashboard.alert(Globalize.translate('SettingsSaved'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue