From 90f4ed34c62f5d90b536cac97265d323d0c1c136 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 30 Oct 2015 14:22:26 +0100 Subject: Simplify form: Just use a textarea for members. --- public/regform.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'public') 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'); -- cgit v1.2.3