Fixes
This commit is contained in:
parent
6e0f27f254
commit
c54915e940
5 changed files with 14 additions and 3 deletions
|
|
@ -690,3 +690,5 @@ $("#userlisttoggle").click(toggleUserlist);
|
|||
$(".add-temp").change(function () {
|
||||
$(".add-temp").prop("checked", $(this).prop("checked"));
|
||||
});
|
||||
|
||||
applyOpts();
|
||||
|
|
|
|||
|
|
@ -719,8 +719,6 @@ function applyOpts() {
|
|||
}
|
||||
}
|
||||
|
||||
applyOpts();
|
||||
|
||||
function showPollMenu() {
|
||||
$("#pollwrap .poll-menu").remove();
|
||||
var menu = $("<div/>").addClass("well poll-menu")
|
||||
|
|
|
|||
|
|
@ -11,14 +11,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
console.log("cookie theme=", theme);
|
||||
|
||||
if (theme !== "default") {
|
||||
var cur = document.getElementById("usertheme");
|
||||
cur.parentNode.removeChild(cur);
|
||||
console.log('removed');
|
||||
var css = document.createElement("link");
|
||||
css.setAttribute("rel", "stylesheet");
|
||||
css.setAttribute("type", "text/css");
|
||||
css.setAttribute("href", theme);
|
||||
css.setAttribute("id", "usertheme");
|
||||
document.head.appendChild(css);
|
||||
console.log(css);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue