Private
Public Access
1
0

race to challenge rename

This commit is contained in:
Sander Roosendaal
2020-05-19 08:03:30 +02:00
parent 4d260ab8e6
commit c062d8c0da
10 changed files with 99 additions and 99 deletions

View File

@@ -2,7 +2,7 @@
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Rowsandall Virtual Racing{% endblock %}
{% block title %}Rowsandall Virtual Challenges{% endblock %}
{% block scripts %}
<script type='text/javascript'
@@ -15,7 +15,7 @@
var frm = $("#raceform");
var data = new FormData(frm[0]);
$.ajax({
url: "/rowers/virtualevents/",
type: "POST",
@@ -24,17 +24,17 @@
data: data,
success: function(data) {
$('#racelist').html(data)
}
});
};
$(document).ready(function() {
var csrftoken = jQuery("[name=csrfmiddlewaretoken]").val();
console.log("CSRF token",csrftoken);
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
@@ -69,7 +69,7 @@
</form>
</p>
<li class="grid_4">
<p>Click on the event name or on the Details button to see the event
<p>Click on the challenge name or on the Details button to see the challenge
details (and manage your participation and results). Click on the
course name to see the course details.
</p>