Handle better when server side rendering is enabled. re #82
This commit is contained in:
parent
fa4ffb47e7
commit
9d117220c4
5 changed files with 19 additions and 8 deletions
11
base.php
11
base.php
|
@ -751,11 +751,12 @@ class PageCustomize extends Page
|
|||
array_push ($this->entryArray, new Entry (localize ("customize.style"), "",
|
||||
$content, "text",
|
||||
array ()));
|
||||
|
||||
$content = '<input type="checkbox" onchange="updateCookieFromCheckbox (this);" id="use_fancyapps" ' . $use_fancybox . ' />';
|
||||
array_push ($this->entryArray, new Entry (localize ("customize.fancybox"), "",
|
||||
$content, "text",
|
||||
array ()));
|
||||
if (!useServerSideRendering ()) {
|
||||
$content = '<input type="checkbox" onchange="updateCookieFromCheckbox (this);" id="use_fancyapps" ' . $use_fancybox . ' />';
|
||||
array_push ($this->entryArray, new Entry (localize ("customize.fancybox"), "",
|
||||
$content, "text",
|
||||
array ()));
|
||||
}
|
||||
$content = '<input type="number" onchange="updateCookie (this);" id="max_item_per_page" value="' . getCurrentOption ("max_item_per_page") . '" min="-1" max="1200" pattern="^[-+]?[0-9]+$" />';
|
||||
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
|
||||
$content, "text",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue