summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/workflow/confirm.html
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/templates/workflow/confirm.html')
-rw-r--r--dashboard/src/templates/workflow/confirm.html23
1 files changed, 18 insertions, 5 deletions
diff --git a/dashboard/src/templates/workflow/confirm.html b/dashboard/src/templates/workflow/confirm.html
index 4f2616e..c1f3440 100644
--- a/dashboard/src/templates/workflow/confirm.html
+++ b/dashboard/src/templates/workflow/confirm.html
@@ -1,7 +1,7 @@
{% extends "workflow/viewport-element.html" %}
{% load staticfiles %}
-{% load bootstrap3 %}
+{% load bootstrap4 %}
{% block content %}
@@ -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");
@@ -66,7 +77,9 @@
req.open("POST", "/wf/workflow/finish/", false);
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 ) { parent.redirect_root(); } }
+ req.onreadystatechange = function() { if(req.readyState === 4 ) {
+ processResponseText(req.responseText);
+ }}
req.send(formData);
}
@@ -112,9 +125,9 @@ function fixVlans() {
req.onerror = function() { alert("problem submitting form"); }
req.onreadystatechange = function() { //replaces current page with response
if(req.readyState === 4 ) {
- document.open();
- document.write(req.responseText);
- document.close();
+ var d = document.getElementById("vlan_warning").innerHTML = "";
+ document.getElementById("confirm_button").disabled = false;
+ document.getElementById("cancel_button").disabled = false;
}
}
req.send(formData);