Tweaks to ACP and channel options

This commit is contained in:
calzoneman 2013-04-06 16:08:26 -05:00
parent 6944ea930e
commit 0365de5a1a
4 changed files with 7 additions and 31 deletions

View file

@ -48,6 +48,9 @@ function initCallbacks() {
cmd: "listchannels"
});
}, 10000);
socket.emit("adm", {
cmd: "listchannels"
});
});
}

View file

@ -57,9 +57,9 @@ function initCallbacks() {
$("#opt_pagetitle").attr("placeholder", opts.pagetitle);
document.title = opts.pagetitle;
PAGETITLE = opts.pagetitle;
$("#opt_customcss").attr("placeholder", opts.customcss);
$("#opt_customcss").val(opts.customcss);
$("#customCss").remove();
if(opts.customcss != "") {
if(opts.customcss.trim() != "") {
$("<link/>").attr("rel", "stylesheet")
.attr("href", opts.customcss)
.attr("id", "customCss")

View file

@ -268,8 +268,6 @@ $("#opt_submit").click(function() {
if(ptitle == "")
ptitle = $("#opt_pagetitle").attr("placeholder")
var css = $("#opt_customcss").val();
if(css == "")
css = $("#opt_customcss").attr("placeholder");
opts = {
qopen_allow_qnext: $("#opt_qopen_allow_qnext").prop("checked"),
qopen_allow_move: $("#opt_qopen_allow_move").prop("checked"),