Don't remove user theme when channel CSS is set
This commit is contained in:
parent
c8dac585ed
commit
ef6a415c1b
|
|
@ -206,7 +206,6 @@ Callbacks = {
|
||||||
$("#opt_show_public").prop("checked", opts.show_public);
|
$("#opt_show_public").prop("checked", opts.show_public);
|
||||||
$("#customCss").remove();
|
$("#customCss").remove();
|
||||||
if(opts.customcss.trim() != "") {
|
if(opts.customcss.trim() != "") {
|
||||||
$("#usertheme").remove();
|
|
||||||
$("<link/>")
|
$("<link/>")
|
||||||
.attr("rel", "stylesheet")
|
.attr("rel", "stylesheet")
|
||||||
.attr("href", opts.customcss)
|
.attr("href", opts.customcss)
|
||||||
|
|
@ -253,7 +252,6 @@ Callbacks = {
|
||||||
$("#jstext").val(data.js);
|
$("#jstext").val(data.js);
|
||||||
|
|
||||||
if(data.css) {
|
if(data.css) {
|
||||||
$("#usertheme").remove();
|
|
||||||
$("<style/>").attr("type", "text/css")
|
$("<style/>").attr("type", "text/css")
|
||||||
.attr("id", "chancss")
|
.attr("id", "chancss")
|
||||||
.text(data.css)
|
.text(data.css)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue