diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2018-12-21 13:32:00 -0500 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2018-12-21 13:32:00 -0500 |
commit | 24ff738bf0065cb98c35d354d03671541a9019ed (patch) | |
tree | 70e2516999ed6dcb1e01b1a651e94f01efdf18a2 /dashboard/src/templates/workflow | |
parent | 1a3b73723f8ed903e428b096fe5458980e813592 (diff) |
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 <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/templates/workflow')
-rw-r--r-- | dashboard/src/templates/workflow/confirm.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/src/templates/workflow/confirm.html b/dashboard/src/templates/workflow/confirm.html index 4f2616e..29b90c8 100644 --- a/dashboard/src/templates/workflow/confirm.html +++ b/dashboard/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); |