From 776fb29dce80499ac913bfe4b85008063d1e5c19 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 17 Nov 2014 23:08:50 -0500 Subject: [PATCH] removed preloader leftovers --- public/src/ajaxify.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 6af3fe68a5..fc1f075e5f 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -8,9 +8,8 @@ $(document).ready(function() { var location = document.location || window.location, rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : ''), - apiXHR = null, + apiXHR = null; - PRELOADER_RATE_LIMIT = 10000; window.onpopstate = function (event) { if (event !== null && event.state && event.state.url !== undefined && !ajaxify.initialLoad) { @@ -22,7 +21,7 @@ $(document).ready(function() { ajaxify.currentPage = null; ajaxify.initialLoad = false; - ajaxify.preloader = {}; + function onAjaxError(err, url, callback, quiet) { var data = err.data, textStatus = err.textStatus; @@ -203,12 +202,6 @@ $(document).ready(function() { $(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, tpl_url = ajaxify.getCustomTemplateMapping(url.split('?')[0]);