summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/workflow/confirm.html
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-06 12:45:32 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-12 11:39:59 -0400
commit9006bd91e6976bbf50a71f92c8ac785029387494 (patch)
tree6eed646222111268b480e574b0d34e013ed9a2c8 /dashboard/src/templates/workflow/confirm.html
parent845c87771157d871eb6c12a79e9224872fb4b140 (diff)
redirect to booking detail on creation
Change-Id: I4e27f6a4a64314639b9ac83750b5b6add069399b Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src/templates/workflow/confirm.html')
-rw-r--r--dashboard/src/templates/workflow/confirm.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/dashboard/src/templates/workflow/confirm.html b/dashboard/src/templates/workflow/confirm.html
index 2510204..a234a71 100644
--- a/dashboard/src/templates/workflow/confirm.html
+++ b/dashboard/src/templates/workflow/confirm.html
@@ -58,6 +58,17 @@
<script>
var select = document.getElementById("id_confirm");
+ function processResponseText(json)
+ {
+ var dict = JSON.parse(json);
+
+ if( !dict["redir_url"] ) {
+ window.top.refresh_iframe();
+ } else {
+ top.window.location.href = dict["redir_url"];
+ }
+ }
+
function delete_manager()
{
var form = $("#manager_delete_form");
@@ -67,7 +78,7 @@
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.onerror = function() { alert("problem with cleaning up session"); }
req.onreadystatechange = function() { if(req.readyState === 4 ) {
- window.top.refresh_iframe();
+ processResponseText(req.responseText);
}}
req.send(formData);
}