Little code refactoring and handle the case of going back to the first page visited. re #73

This commit is contained in:
Sébastien Lucas 2013-06-15 08:36:45 +02:00
parent c96d629ad0
commit e9065b9c29

View file

@ -117,11 +117,8 @@
$.get('templates/default/frontpage.html', function(data){
template = doT.template(data);
$.getJSON('<?php echo "getJSON.php?" . str_replace ("&", "&amp;", $_SERVER["QUERY_STRING"]); ?>', function(data) {
result = template (data);
document.title = data.title;
$(".container").html (result);
ajaxifyLinks ();
updatePage (data);
history.replaceState(data, "", window.location);
});
});
});