Save current JSON data instead of generated HTML. Reenabled tool click. re #73
This commit is contained in:
parent
6ee817710e
commit
b49432e3e1
3 changed files with 17 additions and 14 deletions
12
index.php
12
index.php
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue