"Reload stafsheet if trying to update a filled staff"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user