Bookdetail is handled with ajax. Template is not complete though. re #73

Fixes some small bugs with the other template.
This commit is contained in:
Sébastien Lucas 2013-06-15 16:09:37 +02:00
parent b7ab8bd9d9
commit a0cb911ce9
7 changed files with 101 additions and 16 deletions

View file

@ -94,14 +94,7 @@
prevEffect : 'none',
nextEffect : 'none'
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
});
$(".fancydetail").fancybox({
'type' : 'ajax',
prevEffect : 'none',
nextEffect : 'none'
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
});
});
<?php } ?>
$(".headright").click(function(){
@ -114,6 +107,10 @@
}
});
$.get('templates/default/bookdetail.html', function(data){
templateBookDetail = doT.template (data);
});
$.get('templates/default/frontpage.html', function(data){
template = doT.template(data);
$.getJSON('<?php echo "getJSON.php?" . str_replace ("&", "&amp;", $_SERVER["QUERY_STRING"]); ?>', function(data) {