Don't remove user theme when channel CSS is set

This commit is contained in:
Calvin Montgomery 2013-06-04 22:36:49 -04:00
parent c8dac585ed
commit ef6a415c1b

View file

@ -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)