From 6e1164cc86620223daf77bc92941c8afb676f5f4 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Fri, 21 Dec 2018 13:32:00 -0500 Subject: Removed document.open() Some versions of some browsers dont play nice with a document.open() and document.write(), So I am manipulating the DOM manually instead of writing the response itself. Change-Id: Ib852be55dfcb4e360a5cfd89e5e3e2b845d6322a Signed-off-by: Parker Berberian --- src/templates/workflow/confirm.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/templates/workflow') diff --git a/src/templates/workflow/confirm.html b/src/templates/workflow/confirm.html index 4f2616e..29b90c8 100644 --- a/src/templates/workflow/confirm.html +++ b/src/templates/workflow/confirm.html @@ -112,9 +112,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); -- cgit 1.2.3-korg