summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/dashboard/landing.html
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-11-28 13:38:45 -0500
committerParker Berberian <pberberian@iol.unh.edu>2018-11-28 13:38:45 -0500
commitd7e2fc7062a761e62335073bec6306c78f1471cc (patch)
tree2c92850b2c8d3103e93565e70ee439f610fb1b3e /dashboard/src/templates/dashboard/landing.html
parentb02aa2535c7b7beacbc2d7d24d8522fa596afeee (diff)
Removed Vanilla Form Submission
On google chrome, using vanilla html forms, eg: document.getElementById("Form_id").submit(); does not properly set the CSRF header from the cookies. This results in 403 unauthorized errors in chrome when doing certain things. This is possibly an issue to do with how chrome handles iframes differently from firefox. To fix, we replaced basic forms with serialized XMLHttpRequests, which are more common in this codebase anyway. Change-Id: I93e92cd326c8bba47408b66a95d9d5d806c154f6 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/templates/dashboard/landing.html')
-rw-r--r--dashboard/src/templates/dashboard/landing.html6
1 files changed, 0 insertions, 6 deletions
diff --git a/dashboard/src/templates/dashboard/landing.html b/dashboard/src/templates/dashboard/landing.html
index 3e0aacd..b1eec86 100644
--- a/dashboard/src/templates/dashboard/landing.html
+++ b/dashboard/src/templates/dashboard/landing.html
@@ -28,12 +28,6 @@
grid-template-columns: 33% 34% 33%;
}
</style>
-<script type="text/javascript">
- function cwf(wf_type){
- document.getElementById('id_workflow').selectedIndex = wf_type;
- document.getElementById('wf_selection_form').submit();
- }
-</script>
<div class='wf_create_div'>
<button class="wf_create btn" onclick="cwf(0)">Create a Booking</button>
<button class="wf_create btn" onclick="cwf(1)">Create a Pod</button>