From b2e48b21a2872e03842bbc3b49066297cef6f9e5 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 3 Jun 2014 14:58:20 -0400 Subject: [PATCH] pass url to onAjaxError --- public/src/ajaxify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 9bf0470531..b1d63f7141 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -25,7 +25,7 @@ var ajaxify = ajaxify || {}; ajaxify.initialLoad = false; ajaxify.preloader = {}; - function onAjaxError(err) { + function onAjaxError(err, url) { var data = err.data, textStatus = err.textStatus; $('#content, #footer').stop(true, true).removeClass('ajaxifying'); @@ -85,7 +85,7 @@ var ajaxify = ajaxify || {}; ajaxify.variables.flush(); ajaxify.loadData(url, function(err, data) { if (err) { - return onAjaxError(err); + return onAjaxError(err, url); } $(window).trigger('action:ajaxify.loadingTemplates', {});