mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
30db5a009c
commit
489dc97aab
33 changed files with 368 additions and 212 deletions
|
@ -21,22 +21,32 @@
|
|||
|
||||
function saveUser(page, user) {
|
||||
|
||||
appSettings.syncPath(page.querySelector('#txtSyncPath').value);
|
||||
var syncPath = page.querySelector('#txtSyncPath').value;
|
||||
|
||||
appSettings.syncPath(syncPath);
|
||||
appSettings.syncOnlyOnWifi(page.querySelector('#chkWifi').checked);
|
||||
|
||||
appSettings.cameraUploadServers($(".chkUploadServer", page).get().filter(function (i) {
|
||||
var cameraUploadServers = $(".chkUploadServer", page).get().filter(function (i) {
|
||||
|
||||
return i.checked;
|
||||
|
||||
}).map(function (i) {
|
||||
|
||||
return i.getAttribute('data-id');
|
||||
}));
|
||||
});
|
||||
|
||||
appSettings.cameraUploadServers(cameraUploadServers);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
require(['toast'], function (toast) {
|
||||
toast(Globalize.translate('SettingsSaved'));
|
||||
});
|
||||
|
||||
if (cameraUploadServers.length || syncPath) {
|
||||
if (window.MainActivity) {
|
||||
MainActivity.authorizeStorage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue