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

add more sync buttons

This commit is contained in:
Luke Pulverenti 2014-12-18 23:20:07 -05:00
parent 0770149de2
commit d84df77553
42 changed files with 2405 additions and 66 deletions

View file

@ -36,6 +36,8 @@
$('#chkDisableUserPreferences', page).checked((!user.Configuration.EnableUserPreferenceAccess) || false).checkboxradio("refresh");
$('#chkEnableSync', page).checked(user.Policy.EnableSync).checkboxradio("refresh");
Dashboard.hideLoadingMsg();
}
@ -75,8 +77,14 @@
user.Configuration.EnableUserPreferenceAccess = !$('#chkDisableUserPreferences', page).checked();
user.Configuration.EnableSharedDeviceControl = $('#chkRemoteControlSharedDevices', page).checked();
user.Policy.EnableSync = $('#chkEnableSync', page).checked();
ApiClient.updateUser(user).done(function () {
onSaveComplete(page, user);
ApiClient.updateUserPolicy(user.Id, user.Policy).done(function () {
onSaveComplete(page, user);
});
});
}