1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update movie tabs

This commit is contained in:
Luke Pulverenti 2016-04-03 14:47:49 -04:00
parent 98fbc2497c
commit 746135c2f7
8 changed files with 651 additions and 662 deletions

View file

@ -71,13 +71,10 @@
if (result.TotalRecordCount) {
var context = getParameterByName('context');
if (view == "List") {
html = LibraryBrowser.getListViewHtml({
items: result.Items,
context: context,
sortBy: query.SortBy
});
}
@ -85,7 +82,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "auto",
context: context,
showTitle: true,
centerText: true,
lazy: true,
@ -96,7 +92,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "auto",
context: context,
showTitle: true,
cardLayout: true,
lazy: true,
@ -107,7 +102,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "backdrop",
context: context,
showTitle: true,
centerText: true,
lazy: true,
@ -119,7 +113,6 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "backdrop",
context: context,
showTitle: true,
lazy: true,
preferThumb: true,
@ -205,7 +198,7 @@
}
pageIdOn('pageinit', 'boxsetsPage', function () {
var page = this;
var content = page;
@ -223,16 +216,19 @@
});
window.MoviesPage = window.MoviesPage || {};
window.MoviesPage.renderCollectionsTab = function (page, tabContent) {
return function (view, params, tabContent) {
var self = this;
self.initTab = function () {
initPage(tabContent);
};
self.renderTab = function () {
if (LibraryBrowser.needsRefresh(tabContent)) {
reloadItems(tabContent);
}
};
window.MoviesPage.initCollectionsTab = function (page, tabContent) {
initPage(tabContent);
};
};
});