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
父節點 c96d629ad0
當前提交 e9065b9c29
共有 1 個文件被更改,包括 2 次插入5 次删除

查看文件

@ -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);
});
});
});