Clicking on the link switch to bootstrap immediately. re #79

This commit is contained in:
Sébastien Lucas 2014-07-30 21:15:40 +02:00
parent 5ba7d02f23
commit dfa02b6c11

View file

@ -1078,7 +1078,7 @@ class PageCustomize extends Page
$content = ""; $content = "";
array_push ($this->entryArray, new Entry ("Template", "", array_push ($this->entryArray, new Entry ("Template", "",
"<span onclick='$.cookie(\"template\", \"bootstrap\", { expires: 365 });'>Click to switch to Bootstrap</span>", "text", "<span onclick='$.cookie(\"template\", \"bootstrap\", { expires: 365 });window.location=$(\".headleft\").attr(\"href\");'>Click to switch to Bootstrap</span>", "text",
array ())); array ()));
if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) {
$content .= '<select id="style" onchange="updateCookie (this);">'; $content .= '<select id="style" onchange="updateCookie (this);">';