little optimization : i18n is only transfered one time. re #73

This commit is contained in:
Sébastien Lucas 2013-06-16 15:21:21 +02:00
parent b49432e3e1
commit fccb7a9820
3 changed files with 5 additions and 2 deletions

View file

@ -91,7 +91,7 @@
$.get('templates/default/bookdetail.html'),
$.get('templates/default/main.html'),
$.get('templates/default/page.html'),
$.getJSON('<?php echo "getJSON.php?" . str_replace ("&", "&amp;", $_SERVER["QUERY_STRING"]); ?>')).done(function(header, footer, bookdetail, main, page, data){
$.getJSON('<?php echo "getJSON.php?" . str_replace ("&", "&amp;", addURLParameter ($_SERVER["QUERY_STRING"], "complete", 1)); ?>')).done(function(header, footer, bookdetail, main, page, data){
templateBookDetail = doT.template (bookdetail [0]);
var defMain = {