"Reload stafsheet if trying to update a filled staff"

This commit is contained in:
2018-03-07 15:43:20 +01:00
parent 31fd1aba52
commit bf1e2cc970
2 changed files with 8 additions and 4 deletions

View File

@@ -137,6 +137,9 @@ function get_html_from_ajax(obj, url) {
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
var response = xhttp.responseText;
if (response == "KO"){
document.location.reload(true);
}
obj.innerHTML = response;
}
};