diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2018-12-03 19:22:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-12-03 19:22:36 +0000 |
commit | c6f4fc073bd84b22864495959fad9a53b57e793c (patch) | |
tree | d289cf103ef99646587ca0605d5d6b320ee17f42 /src/templates/resource/steps/meta_info.html | |
parent | e40592d14caf8b4c8d8e13b9623aeef7fee0eb4a (diff) | |
parent | 1bca75075deaa0922946194173def8e4cf6fb985 (diff) |
Merge "Removed Vanilla Form Submission"
Diffstat (limited to 'src/templates/resource/steps/meta_info.html')
-rw-r--r-- | src/templates/resource/steps/meta_info.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/templates/resource/steps/meta_info.html b/src/templates/resource/steps/meta_info.html index 389ff6d..b458842 100644 --- a/src/templates/resource/steps/meta_info.html +++ b/src/templates/resource/steps/meta_info.html @@ -14,5 +14,11 @@ {% endblock content %} {% block onleave %} -document.getElementById("resource_meta_form").submit(); +var ajaxForm = $("#resource_meta_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 %} |