mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
removed preloader leftovers
This commit is contained in:
@@ -8,9 +8,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
var location = document.location || window.location,
|
var location = document.location || window.location,
|
||||||
rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : ''),
|
rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : ''),
|
||||||
apiXHR = null,
|
apiXHR = null;
|
||||||
|
|
||||||
PRELOADER_RATE_LIMIT = 10000;
|
|
||||||
|
|
||||||
window.onpopstate = function (event) {
|
window.onpopstate = function (event) {
|
||||||
if (event !== null && event.state && event.state.url !== undefined && !ajaxify.initialLoad) {
|
if (event !== null && event.state && event.state.url !== undefined && !ajaxify.initialLoad) {
|
||||||
@@ -22,7 +21,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
ajaxify.currentPage = null;
|
ajaxify.currentPage = null;
|
||||||
ajaxify.initialLoad = false;
|
ajaxify.initialLoad = false;
|
||||||
ajaxify.preloader = {};
|
|
||||||
|
|
||||||
function onAjaxError(err, url, callback, quiet) {
|
function onAjaxError(err, url, callback, quiet) {
|
||||||
var data = err.data, textStatus = err.textStatus;
|
var data = err.data, textStatus = err.textStatus;
|
||||||
@@ -203,12 +202,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$(window).trigger('action:ajaxify.loadingData', {url: url});
|
$(window).trigger('action:ajaxify.loadingData', {url: url});
|
||||||
|
|
||||||
if (ajaxify.preloader && ajaxify.preloader[url] && !ajaxify.preloader[url].loading) {
|
|
||||||
callback(null, ajaxify.preloader[url].data);
|
|
||||||
ajaxify.preloader = {};
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var location = document.location || window.location,
|
var location = document.location || window.location,
|
||||||
tpl_url = ajaxify.getCustomTemplateMapping(url.split('?')[0]);
|
tpl_url = ajaxify.getCustomTemplateMapping(url.split('?')[0]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user