mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
ajaxify.fadeIn, ajaxify.fadeOut
This commit is contained in:
@@ -82,7 +82,7 @@ var ajaxify = {};
|
||||
|
||||
translator.load(tpl_url);
|
||||
|
||||
$('#footer, #content').removeClass('hide').addClass('ajaxifying');
|
||||
ajaxify.fadeOut();
|
||||
|
||||
templates.flush();
|
||||
templates.load_template(function () {
|
||||
@@ -100,7 +100,7 @@ var ajaxify = {};
|
||||
app.processPage();
|
||||
|
||||
ajaxify.renderWidgets(tpl_url, url, function(err) {
|
||||
$('#content, #footer').stop(true, true).removeClass('ajaxifying');
|
||||
ajaxify.fadeIn();
|
||||
ajaxify.initialLoad = false;
|
||||
|
||||
app.refreshTitle(url);
|
||||
@@ -114,6 +114,14 @@ var ajaxify = {};
|
||||
return false;
|
||||
};
|
||||
|
||||
ajaxify.fadeIn = function() {
|
||||
$('#content, #footer').stop(true, true).removeClass('ajaxifying');
|
||||
};
|
||||
|
||||
ajaxify.fadeOut = function() {
|
||||
$('#footer, #content').removeClass('hide').addClass('ajaxifying');
|
||||
};
|
||||
|
||||
ajaxify.getTemplateMapping = function(url) {
|
||||
var tpl_url = templates.get_custom_map(url.split('?')[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user