mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
split movie scripts
This commit is contained in:
parent
41a15fa8b3
commit
682a643ba6
8 changed files with 111 additions and 153 deletions
|
@ -68,7 +68,6 @@
|
|||
|
||||
})).trigger('create');
|
||||
|
||||
updateFilterControls(page);
|
||||
var trigger = false;
|
||||
|
||||
if (result.TotalRecordCount) {
|
||||
|
@ -165,10 +164,6 @@
|
|||
});
|
||||
}
|
||||
|
||||
function updateFilterControls(tabContent) {
|
||||
|
||||
}
|
||||
|
||||
function initPage(tabContent) {
|
||||
|
||||
$('select.selectView').on('change', function () {
|
||||
|
@ -182,28 +177,6 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#moviesPage", function () {
|
||||
|
||||
var page = this;
|
||||
var index = 3;
|
||||
|
||||
$(page.querySelector('neon-animated-pages')).on('tabchange', function () {
|
||||
|
||||
if (parseInt(this.selected) == index) {
|
||||
var tabContent = page.querySelector('.pageTabContent[data-index=\'' + index + '\']');
|
||||
|
||||
if (!tabContent.initComplete) {
|
||||
initPage(tabContent);
|
||||
tabContent.initComplete = true;
|
||||
}
|
||||
|
||||
if (LibraryBrowser.needsRefresh(tabContent)) {
|
||||
reloadItems(tabContent);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('pageinitdepends', "#boxsetsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -219,7 +192,18 @@
|
|||
var content = page;
|
||||
|
||||
reloadItems(content);
|
||||
updateFilterControls(content);
|
||||
});
|
||||
|
||||
window.MoviesPage = window.MoviesPage || {};
|
||||
window.MoviesPage.renderCollectionsTab = function (page, tabContent) {
|
||||
|
||||
if (LibraryBrowser.needsRefresh(tabContent)) {
|
||||
reloadItems(tabContent);
|
||||
}
|
||||
};
|
||||
window.MoviesPage.initCollectionsTab = function (page, tabContent) {
|
||||
|
||||
initPage(tabContent);
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue