mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
fixed bug settings were 'enabled' when not logged in after changing channels remotely
This commit is contained in:
@@ -19,7 +19,7 @@ var List = {
|
||||
name: 'votes',
|
||||
reverse: true
|
||||
}, 'added'));
|
||||
List.set_conf(conf);
|
||||
Admin.set_conf(conf);
|
||||
List.populate_list(full_playlist);
|
||||
}else if(msg[0] == "added")
|
||||
{
|
||||
@@ -85,20 +85,6 @@ var List = {
|
||||
});
|
||||
},
|
||||
|
||||
set_conf: function(conf_array)
|
||||
{
|
||||
if(conf_array['adminpass'] == "" || w_p === false) hasadmin = false;
|
||||
else hasadmin = true;
|
||||
music = conf_array["allvideos"];
|
||||
longsongs = conf_array["longsongs"];
|
||||
names=["vote","addsongs","longsongs","frontpage", "allvideos", "removeplay", "skip", "shuffle"];
|
||||
for (var i = 0; i < names.length; i++) {
|
||||
document.getElementsByName(names[i])[0].checked = (conf_array[names[i]] === true);
|
||||
if(hasadmin)
|
||||
$("input[name="+names[i]+"]").attr("disabled", true);
|
||||
}
|
||||
},
|
||||
|
||||
populate_list: function(msg)
|
||||
{
|
||||
$("#wrapper").empty();
|
||||
|
||||
Reference in New Issue
Block a user