mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-07 18:15:35 +00:00
Added info about status of admin in channel
This commit is contained in:
@@ -5,6 +5,7 @@ var myScroll;
|
|||||||
var scroller = false;
|
var scroller = false;
|
||||||
var showToggle =true;
|
var showToggle =true;
|
||||||
var chan = $("#chan").html();
|
var chan = $("#chan").html();
|
||||||
|
var hasadmin=0;
|
||||||
|
|
||||||
function updateList()
|
function updateList()
|
||||||
{
|
{
|
||||||
@@ -23,6 +24,8 @@ function updateList()
|
|||||||
else longS = 0;
|
else longS = 0;
|
||||||
if(conf.hasOwnProperty("vote") && conf["vote"] == "true") adminvote = 1;
|
if(conf.hasOwnProperty("vote") && conf["vote"] == "true") adminvote = 1;
|
||||||
else adminvote = 0;
|
else adminvote = 0;
|
||||||
|
if(conf.hasOwnProperty("adminpass") && conf["adminpass"] != "") hasadmin = 1;
|
||||||
|
else hasadmin = 0;
|
||||||
/*list[0].shift();
|
/*list[0].shift();
|
||||||
list[3].shift();
|
list[3].shift();
|
||||||
list[2].shift();*/
|
list[2].shift();*/
|
||||||
@@ -85,6 +88,10 @@ function updateList()
|
|||||||
document.getElementsByName(names[i])[1].checked = (conf[names[i]] === "false");
|
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);
|
}, 2500);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<b>Admin Panel</b>
|
<b>Admin Panel</b> <span id="setpass"></span>
|
||||||
|
|
||||||
<form id="adminForm" onsubmit="return false" name="ufo" action="" class="daform nomargin" id="base">
|
<form id="adminForm" onsubmit="return false" name="ufo" action="" class="daform nomargin" id="base">
|
||||||
<div class="toggles">
|
<div class="toggles">
|
||||||
|
|||||||
Reference in New Issue
Block a user