use pagebeforeshow when possible to remove transitional flicker

This commit is contained in:
Luke Pulverenti
2013-04-06 14:57:38 -04:00
parent c754d22a86
commit 538ff65a6e
6 changed files with 15 additions and 8 deletions
+4 -2
View File
@@ -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 () {
+1 -1
View File
@@ -13,7 +13,7 @@
return html;
}
$(document).on('pageshow', "#indexPage", function () {
$(document).on('pagebeforeshow', "#indexPage", function () {
var page = this;
+4 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
(function ($, document) {
$(document).on('pageshow', "#moviesRecommendedPage", function () {
$(document).on('pagebeforeshow', "#moviesRecommendedPage", function () {
var page = this;
+1 -1
View File
@@ -1,6 +1,6 @@
(function ($, document) {
$(document).on('pageshow', "#tvRecommendedPage", function () {
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
var page = this;
+4 -2
View File
@@ -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 () {