summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:22:26 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:22:26 +0100
commit90f4ed34c62f5d90b536cac97265d323d0c1c136 (patch)
treeb9c6f3c9494d21804b1cdab73daf5b57286a3ff7 /public
parentf67121a270a345f718dd8e146b13a0fe84da1885 (diff)
downloadnorsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.gz
norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.bz2
norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.zip
Simplify form: Just use a textarea for members.
Diffstat (limited to 'public')
-rw-r--r--public/regform.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/public/regform.js b/public/regform.js
index 98b4b8e..197034e 100644
--- a/public/regform.js
+++ b/public/regform.js
@@ -11,17 +11,9 @@ function fetch(url, id) {
}
window.onload = function() {
- var num_members = 0;
var num_songs = 0;
-
- var add_member_button = document.getElementById('add-member-button');
var add_song_button = document.getElementById('add-song-button');
- add_member_button.onclick = function() {
- num_members += 1;
- fetch(window.location + '/member/new/' + num_members, 'form-members');
- };
-
add_song_button.onclick = function() {
num_songs += 1;
fetch(window.location + '/song/new/' + num_songs, 'form-songs');