mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed pagebeforeshowready
This commit is contained in:
parent
6c549ec80b
commit
382dea3748
45 changed files with 45 additions and 51 deletions
|
@ -95,7 +95,7 @@
|
|||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications');
|
||||
}
|
||||
|
||||
}).on('pagebeforeshowready', "#appServicesPage", function () {
|
||||
}).on('pagebeforeshow', "#appServicesPage", function () {
|
||||
|
||||
// This needs both events for the helpurl to get done at the right time
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
Events.on(document, 'pagebeforeshowready', ".page", function () {
|
||||
Events.on(document, 'pagebeforeshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#channelItemsPage", function () {
|
||||
}).on('pagebeforeshow', "#channelItemsPage", function () {
|
||||
|
||||
var page = this;
|
||||
var limit = LibraryBrowser.getDefaultPageSize();
|
||||
|
|
|
@ -244,7 +244,7 @@
|
|||
Dashboard.navigate('connectlogin.html?mode=connect');
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#connectLoginPage", function () {
|
||||
}).on('pagebeforeshow', "#connectLoginPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -1519,7 +1519,7 @@
|
|||
tabs.noSlide = true;
|
||||
tabs.noink = true;
|
||||
|
||||
$(ownerpage).on('pagebeforeshowready', function () {
|
||||
$(ownerpage).on('pagebeforeshow', function () {
|
||||
|
||||
var selected = tabs.selected;
|
||||
|
||||
|
|
|
@ -400,7 +400,7 @@
|
|||
|
||||
updateEditorNode(this, item);
|
||||
|
||||
}).on('pagebeforeshowready', ".metadataEditorPage", function () {
|
||||
}).on('pagebeforeshow', ".metadataEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -318,7 +318,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#episodesPage", function () {
|
||||
}).on('pagebeforeshow', "#episodesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#gameGenresPage", function () {
|
||||
}).on('pagebeforeshow', "#gameGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#gamesPage", function () {
|
||||
}).on('pagebeforeshow', "#gamesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pagebeforeshowready', "#gamesRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshow', "#gamesRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#gameStudiosPage", function () {
|
||||
}).on('pagebeforeshow', "#gameStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
// Reset form values using the last used query
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#gamesystemsPage", function () {
|
||||
$(document).on('pagebeforeshow', "#gamesystemsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -1800,7 +1800,7 @@
|
|||
btnMore[i].icon = AppInfo.moreIcon;
|
||||
}
|
||||
|
||||
}).on('pagebeforeshowready', "#itemDetailPage", function () {
|
||||
}).on('pagebeforeshow', "#itemDetailPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@
|
|||
|
||||
$(page).on('click', '.mediaItem', onListItemClick);
|
||||
|
||||
}).on('pagebeforeshowready', "#itemListPage", function () {
|
||||
}).on('pagebeforeshow', "#itemListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
$('.libraryViewNav', ownerpage).removeClass('libraryViewNavWithMinHeight');
|
||||
}
|
||||
|
||||
$(ownerpage).on('pagebeforeshowready', LibraryBrowser.onTabbedPageBeforeShowReady);
|
||||
$(ownerpage).on('pagebeforeshow', LibraryBrowser.onTabbedpagebeforeshow);
|
||||
|
||||
$(pages).on('iron-select', function () {
|
||||
|
||||
|
@ -251,7 +251,7 @@
|
|||
});
|
||||
},
|
||||
|
||||
onTabbedPageBeforeShowReady: function () {
|
||||
onTabbedpagebeforeshow: function () {
|
||||
|
||||
var page = this;
|
||||
var tabs = page.querySelector('paper-tabs');
|
||||
|
|
|
@ -1244,7 +1244,7 @@
|
|||
$(itemsContainers[i]).createCardMenus();
|
||||
}
|
||||
|
||||
}).on('pagebeforeshowready', ".libraryPage", function () {
|
||||
}).on('pagebeforeshow', ".libraryPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -780,7 +780,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', ".page", function () {
|
||||
$(document).on('pagebeforeshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#liveTvItemsPage", function () {
|
||||
}).on('pagebeforeshow', "#liveTvItemsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
|
||||
$('.liveTvNewRecordingForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#liveTvNewRecordingPage", function () {
|
||||
}).on('pagebeforeshow', "#liveTvNewRecordingPage", function () {
|
||||
|
||||
var page = this;
|
||||
hideSeriesRecordingFields(page);
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
var page = this;
|
||||
|
||||
|
||||
}).on('pagebeforeshowready', "#liveTvRecordingListPage", function () {
|
||||
}).on('pagebeforeshow', "#liveTvRecordingListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -272,7 +272,7 @@
|
|||
|
||||
$('.liveTvSeriesTimerForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#liveTvSeriesTimerPage", function () {
|
||||
}).on('pagebeforeshow', "#liveTvSeriesTimerPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
|
||||
$('.liveTvTimerForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#liveTvTimerPage", function () {
|
||||
}).on('pagebeforeshow', "#liveTvTimerPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
|
||||
initPage(content);
|
||||
|
||||
}).on('pagebeforeshowready', "#boxsetsPage", function () {
|
||||
}).on('pagebeforeshow', "#boxsetsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#musicAlbumArtistsPage", function () {
|
||||
}).on('pagebeforeshow', "#musicAlbumArtistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
var query = getQuery();
|
||||
|
|
|
@ -278,7 +278,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#musicAlbumsPage", function () {
|
||||
}).on('pagebeforeshow', "#musicAlbumsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#musicArtistsPage", function () {
|
||||
}).on('pagebeforeshow', "#musicArtistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#musicGenresPage", function () {
|
||||
}).on('pagebeforeshow', "#musicGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#musicRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshow', "#musicRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#musicVideosPage", function () {
|
||||
}).on('pagebeforeshow', "#musicVideosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -770,7 +770,7 @@
|
|||
updateCastIcon(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#nowPlayingPage", function () {
|
||||
}).on('pagebeforeshow', "#nowPlayingPage", function () {
|
||||
|
||||
$(document.body).addClass('hiddenViewMenuBar').addClass('hiddenNowPlayingBar');
|
||||
var page = this;
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#playlistsPage", function () {
|
||||
$(document).on('pagebeforeshow', "#playlistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
reloadItems(page);
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
|
||||
$(page).on('click', '.mediaItem', onListItemClick);
|
||||
|
||||
}).on('pagebeforeshowready', "#secondaryItemsPage", function () {
|
||||
}).on('pagebeforeshow', "#secondaryItemsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends pagebeforeshowready', "#selectServerPage", function () {
|
||||
$(document).on('pageinitdepends pagebeforeshow', "#selectServerPage", function () {
|
||||
|
||||
var page = this;
|
||||
updatePageStyle(page);
|
||||
|
|
|
@ -2277,12 +2277,6 @@ $(document).on('pagecreate', ".page", function () {
|
|||
var page = this;
|
||||
Events.trigger(page, 'pageinitdepends');
|
||||
|
||||
}).on('pagebeforeshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
Dashboard.ensurePageTitle(page);
|
||||
Events.trigger(page, 'pagebeforeshowready');
|
||||
|
||||
}).on('pageshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#songsPage", function () {
|
||||
}).on('pagebeforeshow', "#songsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#tvGenresPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
reloadItems(page);
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#tvNextUpPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvNextUpPage", function () {
|
||||
|
||||
var page = this;
|
||||
if (LibraryBrowser.needsRefresh(page)) {
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#tvPeoplePage", function () {
|
||||
}).on('pagebeforeshow', "#tvPeoplePage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#tvRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshowready', "#tvShowsPage", function () {
|
||||
}).on('pagebeforeshow', "#tvShowsPage", function () {
|
||||
|
||||
var query = getQuery();
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#tvStudiosPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvStudiosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
ImageLoader.lazyChildren(elem);
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshowready', "#tvUpcomingPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvUpcomingPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@
|
|||
|
||||
$('.editUserProfileForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#editUserPage", function () {
|
||||
}).on('pagebeforeshow', "#editUserPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
$('.adminUpdatePasswordForm').off('submit', UpdatePasswordPage.onSubmit).on('submit', UpdatePasswordPage.onSubmit);
|
||||
$('.adminLocalAccessForm').off('submit', UpdatePasswordPage.onLocalAccessSubmit).on('submit', UpdatePasswordPage.onLocalAccessSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#userPasswordPage", function () {
|
||||
}).on('pagebeforeshow', "#userPasswordPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -472,7 +472,7 @@
|
|||
|
||||
$('.addUserForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pagebeforeshowready', "#userProfilesPage", function () {
|
||||
}).on('pagebeforeshow', "#userProfilesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue