little optimization : i18n is only transfered one time. re #73
This commit is contained in:
parent
b49432e3e1
commit
fccb7a9820
|
@ -54,6 +54,7 @@
|
|||
$out ["maxPage"] = $currentPage->getMaxPage ();
|
||||
$out ["currentPage"] = $currentPage->n;
|
||||
}
|
||||
if (!is_null (getURLParam ("complete"))) {
|
||||
$out ["i18n"] = array ("coverAlt" => localize("i18n.coversection"),
|
||||
"authorsTitle" => localize("authors.title"),
|
||||
"bookwordTitle" => localize("bookword.title"),
|
||||
|
@ -72,6 +73,7 @@
|
|||
"contentTitle" => localize("content.summary"),
|
||||
"sortorderAsc" => localize("search.sortorder.asc"),
|
||||
"sortorderDesc" => localize("search.sortorder.desc"));
|
||||
}
|
||||
|
||||
$out ["containsBook"] = 0;
|
||||
if ($currentPage->containsBook ()) {
|
||||
|
|
|
@ -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 ("&", "&", $_SERVER["QUERY_STRING"]); ?>')).done(function(header, footer, bookdetail, main, page, data){
|
||||
$.getJSON('<?php echo "getJSON.php?" . str_replace ("&", "&", addURLParameter ($_SERVER["QUERY_STRING"], "complete", 1)); ?>')).done(function(header, footer, bookdetail, main, page, data){
|
||||
templateBookDetail = doT.template (bookdetail [0]);
|
||||
|
||||
var defMain = {
|
||||
|
|
Loading…
Reference in a new issue