From b3a249112d61b41ff88391decfef83df54c39b6d Mon Sep 17 00:00:00 2001 From: KasperRT Date: Tue, 14 Oct 2014 00:44:32 +0200 Subject: [PATCH] Catchfunction for form Added a catchfunction for the admin form, temporarily it only logs out the values. --- js/admin.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/admin.js b/js/admin.js index da0414fc..3da643ea 100644 --- a/js/admin.js +++ b/js/admin.js @@ -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); +}