|
|
|
@ -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]);
|
|
|
|
|