Save current JSON data instead of generated HTML. Reenabled tool click. re #73

This commit is contained in:
Sébastien Lucas 2013-06-16 15:08:47 +02:00
parent 6ee817710e
commit b49432e3e1
3 changed files with 17 additions and 14 deletions

View file

@ -86,16 +86,6 @@
$(".fancyabout").fancybox(fancyBoxObject ('COPS <?php echo VERSION ?>', 'ajax'));
<?php } ?>
$(".headright").click(function(){
if ($("#tool").is(":hidden")) {
$("#tool").slideDown("slow");
$.cookie('toolbar', '1');
} else {
$("#tool").slideUp();
$.removeCookie('toolbar');
}
});
$.when($.get('templates/default/header.html'),
$.get('templates/default/footer.html'),
$.get('templates/default/bookdetail.html'),
@ -118,7 +108,7 @@
};
templatePage = doT.template (page [0], undefined, defPage);
var toto = "toto";
currentData = data [0];
updatePage (data [0]);
history.replaceState(data [0], "", window.location);