|
|
|
@ -70,6 +70,13 @@ $(document).ready(function() {
|
|
|
|
|
if (err) {
|
|
|
|
|
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;
|
|
|
|
|
app.template = data.template.name;
|
|
|
|
|
|
|
|
|
@ -104,12 +111,6 @@ $(document).ready(function() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ajaxify.currentPage = url.split(/[?#]/)[0];
|
|
|
|
|
|
|
|
|
|
if (window.history && window.history.pushState) {
|
|
|
|
|
window.history[!quiet ? 'pushState' : 'replaceState']({
|
|
|
|
|
url: url
|
|
|
|
|
}, url, RELATIVE_PATH + '/' + url);
|
|
|
|
|
}
|
|
|
|
|
return url;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|