Fixed bug with field staying red
This commit is contained in:
		@@ -29,6 +29,7 @@ function fillDefaultXML(element) {
 | 
			
		||||
            .then(response => response.text())
 | 
			
		||||
            .then((exampleData) => {
 | 
			
		||||
                document.getElementById("xmlArea").value = exampleData;
 | 
			
		||||
                document.getElementById("xmlArea").style.backgroundColor = null;
 | 
			
		||||
            })
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
@@ -161,6 +162,10 @@ function performFormatRequest(endpoint, checkXML, sourceId, targetId){
 | 
			
		||||
        restRequest(port, endpoint, xmlData, "").then(function(result) {
 | 
			
		||||
            if (result.status == "OK") {
 | 
			
		||||
                document.getElementById(targetId).value = result.result;
 | 
			
		||||
                document.getElementById(targetId).style.backgroundColor = null;
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
                document.getElementById(targetId).style.backgroundColor = color_red;
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
        });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user