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
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ class PageCustomize extends Page
$content = "";
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 ()));
if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) {
$content .= '<select id="style" onchange="updateCookie (this);">';