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

re-organize user preferences

This commit is contained in:
Luke Pulverenti 2015-07-03 13:55:29 -04:00
parent b33e90dae7
commit 13a2268043
12 changed files with 723 additions and 695 deletions

View file

@ -107,7 +107,7 @@
getDisplayPreferences('home', userId).done(function (result) {
result.CustomPrefs[homePageTourKey] = homePageDismissValue;
ApiClient.updateDisplayPreferences('home', result, userId, getDisplayPreferencesAppName());
ApiClient.updateDisplayPreferences('home', result, userId, AppSettings.displayPreferencesKey());
});
}
@ -249,18 +249,9 @@
});
function getDisplayPreferencesAppName() {
if (AppInfo.isNativeApp) {
return 'Emby Mobile';
}
return 'webclient';
}
function getDisplayPreferences(key, userId) {
return ApiClient.getDisplayPreferences(key, userId, getDisplayPreferencesAppName()).done(function (result) {
return ApiClient.getDisplayPreferences(key, userId, AppSettings.displayPreferencesKey()).done(function (result) {
});
}