mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add list view to item list page
This commit is contained in:
parent
946e1d91bb
commit
6291a9b69a
@ -112,6 +112,13 @@
|
|||||||
|
|
||||||
html = libraryBrowser.getPosterViewHtml(posterOptions);
|
html = libraryBrowser.getPosterViewHtml(posterOptions);
|
||||||
}
|
}
|
||||||
|
else if (viewStyle == "List") {
|
||||||
|
|
||||||
|
html = libraryBrowser.getListViewHtml({
|
||||||
|
items: result.Items,
|
||||||
|
sortBy: query.SortBy
|
||||||
|
});
|
||||||
|
}
|
||||||
else if (viewStyle == "Thumb") {
|
else if (viewStyle == "Thumb") {
|
||||||
|
|
||||||
posterOptions.preferThumb = true;
|
posterOptions.preferThumb = true;
|
||||||
@ -259,7 +266,7 @@
|
|||||||
var btnSelectView = view.querySelector('.btnSelectView');
|
var btnSelectView = view.querySelector('.btnSelectView');
|
||||||
btnSelectView.addEventListener('click', function (e) {
|
btnSelectView.addEventListener('click', function (e) {
|
||||||
|
|
||||||
libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'Poster,PosterCard,Thumb'.split(','));
|
libraryBrowser.showLayoutMenu(e.target, getPageData().view, 'List,Poster,PosterCard,Thumb'.split(','));
|
||||||
});
|
});
|
||||||
|
|
||||||
btnSelectView.addEventListener('layoutchange', function (e) {
|
btnSelectView.addEventListener('layoutchange', function (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user