summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-30 13:16:45 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-30 13:16:45 +0100
commit4ea73e3ee547b5e9ecb9addd4e78614aac924dd7 (patch)
treef64f5c46aabf29e883499e3f338024d18d6c2554
parent4cba7b32275b454767ab2391a1a27ae8b77a0f3c (diff)
downloadnorsk-urskog-registrations-4ea73e3ee547b5e9ecb9addd4e78614aac924dd7.tar.gz
norsk-urskog-registrations-4ea73e3ee547b5e9ecb9addd4e78614aac924dd7.tar.bz2
norsk-urskog-registrations-4ea73e3ee547b5e9ecb9addd4e78614aac924dd7.zip
Fix missing slash in XMLHttpRequest URLs.
-rw-r--r--public/regform.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/regform.js b/public/regform.js
index 9ead521..98b4b8e 100644
--- a/public/regform.js
+++ b/public/regform.js
@@ -19,11 +19,11 @@ window.onload = function() {
add_member_button.onclick = function() {
num_members += 1;
- fetch(window.location + 'member/new/' + num_members, 'form-members');
+ 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');
+ fetch(window.location + '/song/new/' + num_songs, 'form-songs');
};
};