Fixed minor bugs with checkboxes

This commit is contained in:
Kasper Rynning-Tønnesen
2014-10-23 20:30:45 +02:00
parent 392c3e1c1d
commit ec60819c57
3 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ function submitAdmin(form)
addSongs = form.addSongs.checked,
longSongs = form.longSongs.checked,
frontpage = form.frontPage.checked,
onlyMusic = form.onlyMusic.checked,
allvideos = form.allvideos.checked,
removePlay = form.removePlay.checked,
adminpass = form.pass.value;
@@ -23,7 +23,7 @@ function submitAdmin(form)
type: "POST",
url: "php/change.php",
async: false,
data: "conf=start&vote="+voting+"&addsongs="+addSongs+"&longsongs="+longSongs+"&frontpage="+frontpage+"&onlymusic="+onlyMusic+"&removeplay="+removePlay+"&pass="+adminpass,
data: "conf=start&vote="+voting+"&addsongs="+addSongs+"&longsongs="+longSongs+"&frontpage="+frontpage+"&allvideos="+allvideos+"&removeplay="+removePlay+"&pass="+adminpass,
success: function() {
console.log("configurations response: "+response);