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

restore ability to edit user preferences from admin screen

This commit is contained in:
Luke Pulverenti 2016-07-11 15:25:27 -04:00
parent 65a75eb894
commit b90d8515b1
8 changed files with 203 additions and 196 deletions

View file

@ -187,12 +187,10 @@
});
}
function save(page) {
function save(page, userId) {
Dashboard.showLoadingMsg();
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
if (!AppInfo.enableAutoSave) {
Dashboard.showLoadingMsg();
}
@ -252,9 +250,11 @@
return function (view, params) {
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
function onSubmit(e) {
save(view);
save(view, userId);
// Disable default form submission
e.preventDefault();
@ -318,7 +318,7 @@
Dashboard.showLoadingMsg();
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
var userId = params.userId || Dashboard.getCurrentUserId();
ApiClient.getUser(userId).then(function (user) {
@ -334,7 +334,7 @@
var page = this;
if (AppInfo.enableAutoSave) {
save(page);
save(page, userId);
}
});
};