use pagebeforeshow when possible to remove transitional flicker
This commit is contained in:
@@ -58,9 +58,11 @@
|
||||
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
|
||||
$('.radioSortBy', this).each(function () {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
return html;
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#indexPage", function () {
|
||||
$(document).on('pagebeforeshow', "#indexPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
||||
@@ -191,9 +191,12 @@
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#moviesPage", function() {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#moviesPage", function () {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
// 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,9 +127,11 @@
|
||||
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
|
||||
$('.radioSortBy', this).each(function () {
|
||||
|
||||
Reference in New Issue
Block a user