mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
save web client view selection
This commit is contained in:
parent
71271abcb1
commit
14a7a42256
9 changed files with 67 additions and 24 deletions
|
@ -45,6 +45,20 @@
|
|||
|
||||
localStorage.setItem(key + '_' + Dashboard.getCurrentUserId(), JSON.stringify(values));
|
||||
},
|
||||
|
||||
saveViewSetting: function(key, value) {
|
||||
|
||||
localStorage.setItem(key + '_' + Dashboard.getCurrentUserId() + '_view', value);
|
||||
},
|
||||
|
||||
getSavedViewSetting: function (key) {
|
||||
|
||||
var deferred = $.Deferred();
|
||||
var val = localStorage.getItem(key + '_' + Dashboard.getCurrentUserId() + '_view');
|
||||
|
||||
deferred.resolveWith(null, [val]);
|
||||
return deferred.promise();
|
||||
},
|
||||
|
||||
getDateParamValue: function (date) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue