mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use pagebeforeshow when possible to remove transitional flicker
This commit is contained in:
parent
c754d22a86
commit
538ff65a6e
6 changed files with 15 additions and 8 deletions
|
@ -58,10 +58,12 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#boxsetsPage", function () {
|
||||
}).on('pagebeforeshow', "#boxsetsPage", function () {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#boxsetsPage", function () {
|
||||
|
||||
// Reset form values using the last used query
|
||||
$('.radioSortBy', this).each(function () {
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
return html;
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#indexPage", function () {
|
||||
$(document).on('pagebeforeshow', "#indexPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -191,10 +191,13 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#moviesPage", function () {
|
||||
}).on('pagebeforeshow', "#moviesPage", function() {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#moviesPage", function () {
|
||||
|
||||
|
||||
// Reset form values using the last used query
|
||||
$('.radioSortBy', this).each(function () {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pageshow', "#moviesRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshow', "#moviesRecommendedPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pageshow', "#tvRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -127,10 +127,12 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#tvShowsPage", function () {
|
||||
}).on('pagebeforeshow', "#tvShowsPage", function () {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvShowsPage", function () {
|
||||
|
||||
// Reset form values using the last used query
|
||||
$('.radioSortBy', this).each(function () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue