From 7cb4c3f79394a59e0276510261550ca6bb3a4fdf Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 2 Jul 2019 13:27:43 -0400 Subject: Remove onleave + make form id's consistent Change-Id: If167ae98226adfccfcfe2baa356370454a9931b4 Signed-off-by: Sawyer Bergeron --- src/templates/snapshot_workflow/steps/select_host.html | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/templates/snapshot_workflow/steps/select_host.html') diff --git a/src/templates/snapshot_workflow/steps/select_host.html b/src/templates/snapshot_workflow/steps/select_host.html index a0af67b..4243145 100644 --- a/src/templates/snapshot_workflow/steps/select_host.html +++ b/src/templates/snapshot_workflow/steps/select_host.html @@ -6,7 +6,7 @@ {% block content %} {% bootstrap_form_errors form type='non_fields' %} -
+ {% csrf_token %}
@@ -81,13 +81,3 @@ if(initial){ } {% endblock content %} - -{% block onleave %} -var ajaxForm = $("#host_select_form"); -var formData = ajaxForm.serialize(); -req = new XMLHttpRequest(); -req.open("POST", "/wf/workflow/", false); -req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); -req.onerror = function() { alert("problem submitting form"); } -req.send(formData); -{% endblock %} -- cgit 1.2.3-korg