Fixed default only music setting

This commit is contained in:
Kasper Rynning-Tønnesen
2014-10-23 20:24:54 +02:00
parent e98c34892e
commit bc4d461bb1
5 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ function updateList()
conf = list["conf"];
if(conf.hasOwnProperty("addsongs") && conf["addsongs"] == "true") adminadd = 1;
else adminadd = 0;
if(conf.hasOwnProperty("onlymusic") && conf["onlymusic"] == "true") music = 1;
if(conf.hasOwnProperty("allvideos") && conf["allvideos"] == "true") music = 1;
else music = 0;
if(conf.hasOwnProperty("longsongs") && conf["longsongs"] == "true") longS = 1;
else longS = 0;
@@ -80,7 +80,7 @@ function updateList()
document.getElementsByName("addSongs")[0].checked = (conf["addsongs"] === "true");
document.getElementsByName("longSongs")[0].checked = (conf["longsongs"] === "true");
document.getElementsByName("frontPage")[0].checked = (conf["frontpage"] === "true");
document.getElementsByName("onlyMusic")[0].checked = (conf["onlymusic"] === "true");
document.getElementsByName("allvideos")[0].checked = (conf["allvideos"] === "true");
document.getElementsByName("removePlay")[0].checked = (conf["removeplay"] === "true");
}, 2500);
}