Type info now only shows when needed
This commit is contained in:
		@@ -244,9 +244,12 @@ function performRequest(endpoint, checkXML, checkTransform) {
 | 
				
			|||||||
    if (!empty) {
 | 
					    if (!empty) {
 | 
				
			||||||
        restRequest(port, endpoint, xmlData, transformData).then(function (result) {
 | 
					        restRequest(port, endpoint, xmlData, transformData).then(function (result) {
 | 
				
			||||||
            document.getElementById("resultArea").value = result.result;
 | 
					            document.getElementById("resultArea").value = result.result;
 | 
				
			||||||
            document.getElementById("procinfo").innerText = ' Computed using '.concat(" ", result.processor, ". Returned: ", result.type);
 | 
					            document.getElementById("procinfo").innerText = ' Computed using ' + result.processor
 | 
				
			||||||
 | 
					            if (result.type)
 | 
				
			||||||
 | 
					                document.getElementById("procinfo").innerText += ". Returned: " + result.type;
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
            if (result.status = "OK") {
 | 
					            if (result.status = "OK") {
 | 
				
			||||||
                document.getElementById("procinfo").innerText = document.getElementById("procinfo").innerText.concat(" in ", result.time, "ms");
 | 
					                document.getElementById("procinfo").innerText += " in " + result.time + "ms";
 | 
				
			||||||
                procinfo.style.color = "#30aa58";
 | 
					                procinfo.style.color = "#30aa58";
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                procinfo.style.color = "#aa3030";
 | 
					                procinfo.style.color = "#aa3030";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user