From 3ae41c96f6f3e6a1bf863d85aaf83bc21863ab9f Mon Sep 17 00:00:00 2001 From: "Nicolas A. Tonne" Date: Thu, 30 Oct 2014 21:32:12 +0100 Subject: [PATCH] Added info about status of admin in channel --- js/list.js | 7 +++++++ php/panel.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/js/list.js b/js/list.js index 76ca795e..a96902b9 100755 --- a/js/list.js +++ b/js/list.js @@ -5,6 +5,7 @@ var myScroll; var scroller = false; var showToggle =true; var chan = $("#chan").html(); +var hasadmin=0; function updateList() { @@ -23,6 +24,8 @@ function updateList() else longS = 0; if(conf.hasOwnProperty("vote") && conf["vote"] == "true") adminvote = 1; else adminvote = 0; + if(conf.hasOwnProperty("adminpass") && conf["adminpass"] != "") hasadmin = 1; + else hasadmin = 0; /*list[0].shift(); list[3].shift(); list[2].shift();*/ @@ -85,6 +88,10 @@ function updateList() document.getElementsByName(names[i])[1].checked = (conf[names[i]] === "false"); }; + if(hasadmin) + $("#setpass").text("Channel has admin") + else + $("#setpass").text("Channel has no admin") } }, 2500); } diff --git a/php/panel.php b/php/panel.php index 90e8d078..36acf3b3 100755 --- a/php/panel.php +++ b/php/panel.php @@ -1,4 +1,4 @@ -Admin Panel +Admin Panel