Fixed bug with field staying red
This commit is contained in:
@@ -29,6 +29,7 @@ function fillDefaultXML(element) {
|
|||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then((exampleData) => {
|
.then((exampleData) => {
|
||||||
document.getElementById("xmlArea").value = 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) {
|
restRequest(port, endpoint, xmlData, "").then(function(result) {
|
||||||
if (result.status == "OK") {
|
if (result.status == "OK") {
|
||||||
document.getElementById(targetId).value = result.result;
|
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