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,9 +58,11 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
}).on('pageshow', "#boxsetsPage", function () {
|
}).on('pagebeforeshow', "#boxsetsPage", function () {
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
|
}).on('pageshow', "#boxsetsPage", function () {
|
||||||
|
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('pageshow', "#indexPage", function () {
|
$(document).on('pagebeforeshow', "#indexPage", function () {
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
|
|
|
@ -191,9 +191,12 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}).on('pagebeforeshow', "#moviesPage", function() {
|
||||||
|
|
||||||
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#moviesPage", function () {
|
}).on('pageshow', "#moviesPage", function () {
|
||||||
|
|
||||||
reloadItems(this);
|
|
||||||
|
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(function ($, document) {
|
(function ($, document) {
|
||||||
|
|
||||||
$(document).on('pageshow', "#moviesRecommendedPage", function () {
|
$(document).on('pagebeforeshow', "#moviesRecommendedPage", function () {
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(function ($, document) {
|
(function ($, document) {
|
||||||
|
|
||||||
$(document).on('pageshow', "#tvRecommendedPage", function () {
|
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
|
|
|
@ -127,9 +127,11 @@
|
||||||
reloadItems(page);
|
reloadItems(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
}).on('pageshow', "#tvShowsPage", function () {
|
}).on('pagebeforeshow', "#tvShowsPage", function () {
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
|
}).on('pageshow', "#tvShowsPage", function () {
|
||||||
|
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue