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
|
@ -165,6 +165,7 @@
|
|||
} else {
|
||||
reloadItems(page);
|
||||
}
|
||||
LibraryBrowser.saveViewSetting('musicalbums', view);
|
||||
});
|
||||
|
||||
$('.alphabetPicker', page).on('alphaselect', function (e, character) {
|
||||
|
@ -191,8 +192,9 @@
|
|||
|
||||
}).on('pagebeforeshow', "#musicAlbumsPage", function () {
|
||||
|
||||
var page = this;
|
||||
var limit = LibraryBrowser.getDefaultPageSize();
|
||||
|
||||
|
||||
// If the default page size has changed, the start index will have to be reset
|
||||
if (limit != query.Limit) {
|
||||
query.Limit = limit;
|
||||
|
@ -201,7 +203,14 @@
|
|||
|
||||
LibraryBrowser.loadSavedQueryValues('musicalbums', query);
|
||||
|
||||
reloadItems(this);
|
||||
LibraryBrowser.getSavedViewSetting('musicalbums').done(function (val) {
|
||||
|
||||
if (val) {
|
||||
$('#selectView', page).val(val).selectmenu('refresh').trigger('change');
|
||||
} else {
|
||||
reloadItems(page);
|
||||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#musicAlbumsPage", function () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue