mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
using ajaxifying class for content and footer instead of jquery fadein/out
This commit is contained in:
@@ -88,7 +88,7 @@ var ajaxify = {};
|
|||||||
|
|
||||||
translator.load(tpl_url);
|
translator.load(tpl_url);
|
||||||
|
|
||||||
jQuery('#footer, #content').fadeOut(100);
|
jQuery('#footer, #content').addClass('ajaxifying');
|
||||||
|
|
||||||
templates.flush();
|
templates.flush();
|
||||||
templates.load_template(function () {
|
templates.load_template(function () {
|
||||||
@@ -105,17 +105,17 @@ var ajaxify = {};
|
|||||||
|
|
||||||
app.processPage();
|
app.processPage();
|
||||||
|
|
||||||
jQuery('#content, #footer').stop(true, true).fadeIn(200, function () {
|
jQuery('#content, #footer').stop(true, true).removeClass('ajaxifying');
|
||||||
if (window.location.hash) {
|
|
||||||
hash = window.location.hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hash) {
|
if (window.location.hash) {
|
||||||
require(['forum/topic'], function(topic) {
|
hash = window.location.hash;
|
||||||
topic.scrollToPost(hash.substr(1));
|
}
|
||||||
});
|
|
||||||
}
|
if (hash) {
|
||||||
});
|
require(['forum/topic'], function(topic) {
|
||||||
|
topic.scrollToPost(hash.substr(1));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
utils.refreshTitle(url);
|
utils.refreshTitle(url);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user