Skip to content

Commit

Permalink
Fix WebIf: Changes are now saved/accepted again
Browse files Browse the repository at this point in the history
  • Loading branch information
Barracuda09 committed Jul 17, 2020
1 parent 0c8369e commit d678100
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/assets/js/loadxmldoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function loadXMLDoc(filename) {
var xmlLoaded;
var filename;
function loadXMLDoc(file) {
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else if (window.ActiveXObject) {
Expand All @@ -10,11 +12,13 @@ function loadXMLDoc(filename) {
// callback function
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
filename = file;
xmlLoaded = xmlhttp.responseXML;
xmlloaded(xmlhttp.responseXML);
}
}

xmlhttp.open("GET", filename, true);
xmlhttp.open("GET", file, true);
xmlhttp.send();
}

Expand Down

0 comments on commit d678100

Please sign in to comment.