Webinterface code cleanup

This commit is contained in:
a_voel02 2018-08-26 22:08:02 +02:00
parent d38a6b9ea8
commit d8aa6c41bb

View File

@ -46,7 +46,6 @@
let xhttp = new XMLHttpRequest(); let xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4 && this.status == 200) {
//callback(xhttp.responseText);
} }
}; };
xhttp.open("POST", from, true); xhttp.open("POST", from, true);
@ -89,12 +88,7 @@
let val = app.options[app.selectedIndex].value; let val = app.options[app.selectedIndex].value;
let parameter = document.getElementById('args').value; let parameter = document.getElementById('args').value;
let url = "/apps/start/" + val; let url = "/apps/start/" + val;
/*if (parameter != ""){
url += "/" + parameter;
}*/
post(url, {"param": parameter}); post(url, {"param": parameter});
//console.log(url);
//getRaw("GET", url, function(){});
return false; return false;
} }
@ -104,8 +98,8 @@
}); });
} }
/*updateLog(); updateLog();
setInterval(updateLog, 1000);*/ setInterval(updateLog, 1000);
getJSON("/apps/list", populateForm); getJSON("/apps/list", populateForm);