mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 11:41:06 +01:00
moved to ajaxify.start
This commit is contained in:
@@ -71,12 +71,6 @@ $(document).ready(function() {
|
|||||||
return onAjaxError(err, url, callback, quiet);
|
return onAjaxError(err, url, callback, quiet);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.history && window.history.pushState) {
|
|
||||||
window.history[!quiet ? 'pushState' : 'replaceState']({
|
|
||||||
url: url
|
|
||||||
}, url, RELATIVE_PATH + '/' + url);
|
|
||||||
}
|
|
||||||
|
|
||||||
retry = true;
|
retry = true;
|
||||||
app.template = data.template.name;
|
app.template = data.template.name;
|
||||||
|
|
||||||
@@ -111,6 +105,11 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ajaxify.currentPage = url.split(/[?#]/)[0];
|
ajaxify.currentPage = url.split(/[?#]/)[0];
|
||||||
|
if (window.history && window.history.pushState) {
|
||||||
|
window.history[!quiet ? 'pushState' : 'replaceState']({
|
||||||
|
url: url
|
||||||
|
}, url, RELATIVE_PATH + '/' + url);
|
||||||
|
}
|
||||||
return url;
|
return url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user