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