mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Changed so settings can be changed without channel having a password
This commit is contained in:
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -140,7 +140,7 @@ var Admin = {
|
||||
longsongs = conf_array["longsongs"];
|
||||
names = ["vote","addsongs","longsongs","frontpage", "allvideos",
|
||||
"removeplay", "skip", "shuffle"];
|
||||
|
||||
|
||||
if(conf_array['adminpass'] == "" || !w_p)
|
||||
hasadmin = false;
|
||||
else hasadmin = true;
|
||||
@@ -151,9 +151,11 @@ var Admin = {
|
||||
$("input[name="+names[i]+"]").attr("disabled", hasadmin);
|
||||
}
|
||||
|
||||
if((hasadmin && !localStorage[chan.toLowerCase()]) ||
|
||||
(!hasadmin && !localStorage[chan.toLowerCase()])){
|
||||
console.log(hasadmin)
|
||||
if((hasadmin && !localStorage[chan.toLowerCase()])){
|
||||
Admin.display_logged_out();
|
||||
}else if(!hasadmin && !localStorage[chan.toLowerCase()]){
|
||||
$("#password").attr("placeholder", "Create channel password");
|
||||
}
|
||||
|
||||
/*if(conf_array.desc !== undefined)
|
||||
|
||||
Reference in New Issue
Block a user