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/resource/steps/host_info.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/templates/resource/steps/host_info.html') diff --git a/src/templates/resource/steps/host_info.html b/src/templates/resource/steps/host_info.html index bbbafdc..3230d8f 100644 --- a/src/templates/resource/steps/host_info.html +++ b/src/templates/resource/steps/host_info.html @@ -10,7 +10,7 @@ {% else %} -
+ {% csrf_token %} @@ -32,12 +32,3 @@ {% endif %} {% endblock content %} - -{% block onleave %} -var formData = $("#host_meta_form").serialize(); -var req = new XMLHttpRequest(); -req.open("POST", "/wf/workflow/", false); -req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); -req.onerror = function() { alert("There was a problem submitting the form"); } -req.send(formData); -{% endblock %} -- cgit 1.2.3-korg