Catchfunction for form

Added a catchfunction for the admin form, temporarily it only logs out the values.
This commit is contained in:
KasperRT
2014-10-14 00:44:32 +02:00
parent 50fa956a16
commit b3a249112d

View File

@@ -19,3 +19,17 @@ function admin()
}
$("#playlist").toggleClass("lowOpacity");
}
function submitAdmin(form)
{
vote = form.vote.checked,
addSongs = form.addSongs.checked,
longSongs = form.longSongs.checked,
onlyMusic = form.onlyMusic.checked;
console.log("Vote: "+vote);
console.log("Add Songs: "+addSongs);
console.log("Long Songs: "+longSongs);
console.log("Only music: "+onlyMusic);
}