mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added a-z picker to more screens
This commit is contained in:
parent
3e88762620
commit
73c8898800
8 changed files with 57 additions and 5 deletions
|
@ -678,10 +678,10 @@ a.itemTag:hover {
|
||||||
|
|
||||||
.alphabetPicker {
|
.alphabetPicker {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 2px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
top: 100px;
|
top: 100px;
|
||||||
width: 25px;
|
width: 27px;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
@ -713,7 +713,7 @@ a.itemTag:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemsContainerWithAlphaPicker {
|
.itemsContainerWithAlphaPicker {
|
||||||
margin-right: 25px;
|
margin-right: 27px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
<a href="moviestudios.html">Studios</a>
|
<a href="moviestudios.html">Studios</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="alphabetPicker">
|
||||||
|
</div>
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="viewSettings">
|
<div class="viewSettings">
|
||||||
<div class="viewControls">
|
<div class="viewControls">
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<a href="musicartists.html" class="ui-btn-active">Artists</a>
|
<a href="musicartists.html" class="ui-btn-active">Artists</a>
|
||||||
<a href="musicgenres.html">Genres</a>
|
<a href="musicgenres.html">Genres</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="alphabetPicker">
|
||||||
|
</div>
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="viewSettings">
|
<div class="viewSettings">
|
||||||
<div class="viewControls">
|
<div class="viewControls">
|
||||||
|
|
|
@ -264,7 +264,7 @@
|
||||||
|
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
useAverageAspectRatio: true,
|
useAverageAspectRatio: item.MediaType != "Game",
|
||||||
showNewIndicator: true,
|
showNewIndicator: true,
|
||||||
shape: item.Type == "MusicAlbum" ? "square" : "portrait"
|
shape: item.Type == "MusicAlbum" ? "square" : "portrait"
|
||||||
});
|
});
|
||||||
|
@ -320,7 +320,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderChildren(page, item) {
|
function renderChildren(page, item) {
|
||||||
|
|
||||||
var sortBy = item.Type == "Boxset" ? "ProductionYear,SortName" : "SortName";
|
var sortBy = item.Type == "Boxset" ? "ProductionYear,SortName" : "SortName";
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||||
|
|
|
@ -108,6 +108,19 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||||
|
|
||||||
|
query.NameStartsWith = character;
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
|
||||||
|
}).on('alphaclear', function (e) {
|
||||||
|
|
||||||
|
query.NameStartsWith = '';
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
});
|
||||||
|
|
||||||
}).on('pagebeforeshow', "#moviePeoplePage", function () {
|
}).on('pagebeforeshow', "#moviePeoplePage", function () {
|
||||||
|
|
||||||
var limit = LibraryBrowser.getDefaultPageSize();
|
var limit = LibraryBrowser.getDefaultPageSize();
|
||||||
|
@ -143,6 +156,8 @@
|
||||||
this.checked = filters.indexOf(',' + filterName) != -1;
|
this.checked = filters.indexOf(',' + filterName) != -1;
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, document);
|
})(jQuery, document);
|
|
@ -98,6 +98,19 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||||
|
|
||||||
|
query.NameStartsWith = character;
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
|
||||||
|
}).on('alphaclear', function (e) {
|
||||||
|
|
||||||
|
query.NameStartsWith = '';
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
});
|
||||||
|
|
||||||
}).on('pagebeforeshow', "#musicArtistsPage", function () {
|
}).on('pagebeforeshow', "#musicArtistsPage", function () {
|
||||||
|
|
||||||
var limit = LibraryBrowser.getDefaultPageSize();
|
var limit = LibraryBrowser.getDefaultPageSize();
|
||||||
|
@ -126,6 +139,8 @@
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('#chkIsOnTour', this).checked(query.IsOnTour === true).checkboxradio('refresh');
|
$('#chkIsOnTour', this).checked(query.IsOnTour === true).checkboxradio('refresh');
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, document);
|
})(jQuery, document);
|
|
@ -108,6 +108,19 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||||
|
|
||||||
|
query.NameStartsWith = character;
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
|
||||||
|
}).on('alphaclear', function (e) {
|
||||||
|
|
||||||
|
query.NameStartsWith = '';
|
||||||
|
|
||||||
|
reloadItems(page);
|
||||||
|
});
|
||||||
|
|
||||||
}).on('pagebeforeshow', "#tvPeoplePage", function () {
|
}).on('pagebeforeshow', "#tvPeoplePage", function () {
|
||||||
|
|
||||||
var limit = LibraryBrowser.getDefaultPageSize();
|
var limit = LibraryBrowser.getDefaultPageSize();
|
||||||
|
@ -152,6 +165,8 @@
|
||||||
this.checked = filters.indexOf(',' + filterName) != -1;
|
this.checked = filters.indexOf(',' + filterName) != -1;
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, document);
|
})(jQuery, document);
|
|
@ -13,6 +13,9 @@
|
||||||
<a href="tvpeople.html" class="ui-btn-active">Actors</a>
|
<a href="tvpeople.html" class="ui-btn-active">Actors</a>
|
||||||
<a href="tvstudios.html">Networks</a>
|
<a href="tvstudios.html">Networks</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="alphabetPicker">
|
||||||
|
</div>
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="viewSettings">
|
<div class="viewSettings">
|
||||||
<div class="viewControls">
|
<div class="viewControls">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue