From fb872eac7c349e6240b409fda1b872ea9fc489e2 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 5 Jan 2019 19:17:33 +0100 Subject: [PATCH] fixed ajax forms (ending slash) --- rowers/templates/course_form.html | 2 +- rowers/templates/image_form.html | 2 +- rowers/templates/logo_form.html | 2 +- rowers/templates/virtualevents.html | 2 +- rowers/tests/testdata/testdata.csv.gz | Bin 11426 -> 11426 bytes 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rowers/templates/course_form.html b/rowers/templates/course_form.html index ff6b8138..fe6e1962 100644 --- a/rowers/templates/course_form.html +++ b/rowers/templates/course_form.html @@ -180,7 +180,7 @@ $.ajax({ data: data, type: $(this).attr('method'), - url: '/rowers/courses/upload', + url: '/rowers/courses/upload/', contentType: false, processData: false, error: function(result) { diff --git a/rowers/templates/image_form.html b/rowers/templates/image_form.html index f0dccc5a..28871739 100644 --- a/rowers/templates/image_form.html +++ b/rowers/templates/image_form.html @@ -171,7 +171,7 @@ $.ajax({ data: data, type: $(this).attr('method'), - url: '/rowers/workout/{{ workout.id }}/image', + url: '/rowers/workout/{{ workout.id }}/image/', contentType: false, processData: false, error: function(result) { diff --git a/rowers/templates/logo_form.html b/rowers/templates/logo_form.html index c3489d60..9482267a 100644 --- a/rowers/templates/logo_form.html +++ b/rowers/templates/logo_form.html @@ -198,7 +198,7 @@ $.ajax({ data: data, type: $(this).attr('method'), - url: '/rowers/virtualevent/{{ race.id }}/image', + url: '/rowers/virtualevent/{{ race.id }}/image/', contentType: false, processData: false, error: function(result) { diff --git a/rowers/templates/virtualevents.html b/rowers/templates/virtualevents.html index 4524a435..d8fc83bd 100644 --- a/rowers/templates/virtualevents.html +++ b/rowers/templates/virtualevents.html @@ -17,7 +17,7 @@ var data = new FormData(frm[0]); $.ajax({ - url: "/rowers/virtualevents", + url: "/rowers/virtualevents/", type: "POST", contentType: false, processData: false, diff --git a/rowers/tests/testdata/testdata.csv.gz b/rowers/tests/testdata/testdata.csv.gz index 3838db526efcdf9d9f74a8a7d081fe6edadc06a0..2daf52cef7abd69ae6ade15e11f68f47ee74d187 100644 GIT binary patch delta 15 WcmZ1!xhRrNzMF%C^YccwIXVC;(*-gB delta 15 WcmZ1!xhRrNzMF$Xf7wR1IXVC;HU$d+