mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Catchfunction for form
Added a catchfunction for the admin form, temporarily it only logs out the values.
This commit is contained in:
14
js/admin.js
14
js/admin.js
@@ -19,3 +19,17 @@ function admin()
|
|||||||
}
|
}
|
||||||
$("#playlist").toggleClass("lowOpacity");
|
$("#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);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user