Skip to content

Node.js based forum software built for the modern web

added timeout to address bar hiding (as per the official way of accomplishing this task )

psychobunny2638c03752f6
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 9a70ebd194..d5daa8d907 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -47,7 +47,7 @@ var ajaxify = {};
}
jQuery('#footer, #content').fadeOut(100);
-
+
templates.flush();
templates.load_template(function() {
exec_body_scripts(content);
diff --git a/public/src/app.js b/public/src/app.js
index 4ea87866bb..11095a8e1d 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -199,7 +199,9 @@ var socket,
populate_online_users();
- window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
+ setTimeout(function() {
+ window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
+ }, 100);
}
socket.on('api:user.get_online_users', function(users) {