mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
alpha picker for collections
This commit is contained in:
parent
015150be5a
commit
6915c52297
2 changed files with 19 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="itemListPage" data-role="page" class="page libraryPage folderListPage" data-theme="a">
|
<div id="itemListPage" data-role="page" class="page libraryPage folderListPage" data-theme="a">
|
||||||
|
<div class="alphabetPicker">
|
||||||
|
</div>
|
||||||
<div data-role="content" class="itemListContent">
|
<div data-role="content" class="itemListContent">
|
||||||
|
|
||||||
<h1 class="listHeader" style="margin: 0; text-align: center;"><span id="itemName"></span>
|
<h1 class="listHeader" style="margin: 0; text-align: center;"><span id="itemName"></span>
|
||||||
|
|
|
@ -149,6 +149,20 @@
|
||||||
Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id);
|
Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||||
|
|
||||||
|
query.NameStartsWithOrGreater = character;
|
||||||
|
query.StartIndex = 0;
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
|
||||||
|
}).on('alphaclear', function (e) {
|
||||||
|
|
||||||
|
query.NameStartsWithOrGreater = '';
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
});
|
||||||
|
|
||||||
}).on('pageshow', "#itemListPage", function () {
|
}).on('pageshow', "#itemListPage", function () {
|
||||||
|
|
||||||
query.Limit = LibraryBrowser.getDefaultPageSize();
|
query.Limit = LibraryBrowser.getDefaultPageSize();
|
||||||
|
@ -157,6 +171,7 @@
|
||||||
query.SortBy = "SortName";
|
query.SortBy = "SortName";
|
||||||
query.SortOrder = "Ascending";
|
query.SortOrder = "Ascending";
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
|
query.NameStartsWithOrGreater = '';
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
|
@ -184,6 +199,8 @@
|
||||||
|
|
||||||
$('#selectView', this).val(view).selectmenu('refresh');
|
$('#selectView', this).val(view).selectmenu('refresh');
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||||
|
|
||||||
}).on('pagehide', "#itemListPage", function () {
|
}).on('pagehide', "#itemListPage", function () {
|
||||||
|
|
||||||
currentItem = null;
|
currentItem = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue