update history on 40x/50x

v1.18.x
barisusakli 9 years ago
parent f475068010
commit 3631a30061

@ -71,12 +71,15 @@ $(document).ready(function() {
$('#footer, #content').removeClass('hide').addClass('ajaxifying');
ajaxify.loadData(url, function(err, data) {
if (!err || (err && err.data && (parseInt(err.data.status, 10) !== 302 && parseInt(err.data.status, 10) !== 308))) {
ajaxify.updateHistory(url, quiet);
}
if (err) {
return onAjaxError(err, url, callback, quiet);
}
ajaxify.updateHistory(url, quiet);
retry = true;
app.template = data.template.name;

Loading…
Cancel
Save