mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
no need to send prefetched state anymor
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user