trigger ajaxify.loadingData regardless of cached state

v1.18.x
psychobunny 11 years ago
parent 6aeec3a399
commit bf63c927c6

@ -185,12 +185,12 @@ var ajaxify = ajaxify || {};
};
ajaxify.loadData = function(callback, url, template) {
$(window).trigger('action:ajaxify.loadingData', {url: url});
if (ajaxify.preloader && ajaxify.preloader.url === url) {
return callback(null, ajaxify.preloader.data);
}
$(window).trigger('action:ajaxify.loadingData', {url: url});
var location = document.location || window.location,
api_url = (url === '' || url === '/') ? 'home' : url,
tpl_url = ajaxify.getCustomTemplateMapping(api_url.split('?')[0]);

Loading…
Cancel
Save