no need to send prefetched state anymor

v1.18.x
psychobunny 11 years ago
parent b2b76f701d
commit 1e05a92c1e

@ -181,7 +181,7 @@ var ajaxify = ajaxify || {};
ajaxify.loadData = function(url, callback) {
$(window).trigger('action:ajaxify.loadingData', {url: url});
if (ajaxify.preloader && ajaxify.preloader.url.replace(/[\?|\&]prefetched=true/, '') === url) {
if (ajaxify.preloader && ajaxify.preloader.url === url) {
return callback(null, ajaxify.preloader.data);
}
@ -292,7 +292,6 @@ var ajaxify = ajaxify || {};
if (this.host === window.location.host) {
// Internal link
var url = this.href.replace(rootUrl + '/', '');
url = url + (url.match(/\?/) ? '&' : '?') + 'prefetched=true';
ajaxify.loadData(url, function(err, data) {
ajaxify.preloader = {

Loading…
Cancel
Save