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