mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
optimized the transition between pages just a bit
This commit is contained in:
@@ -43,8 +43,9 @@ var ajaxify = {};
|
|||||||
if (templates[tpl_url]) {
|
if (templates[tpl_url]) {
|
||||||
window.history.pushState({}, url, "/" + url);
|
window.history.pushState({}, url, "/" + url);
|
||||||
|
|
||||||
jQuery('#footer').fadeOut(100);
|
jQuery('#footer').fadeOut(100).removeAttr('id');
|
||||||
jQuery('#content').fadeOut(100);
|
jQuery('#content').fadeOut(100);
|
||||||
|
jQuery('<div id="content"></div>').insertBefore('#footer').hide();
|
||||||
|
|
||||||
load_template(function() {
|
load_template(function() {
|
||||||
exec_body_scripts(content);
|
exec_body_scripts(content);
|
||||||
|
|||||||
Reference in New Issue
Block a user