prevent alert if nothing is returned on modal form sent.
This commit is contained in:
@@ -399,7 +399,9 @@ function switchFloor(floor){
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
if (this.readyState === 4 && this.status === 200){
|
||||
setTimeout(function () { modalEV.hide() }, 700);
|
||||
alert(xmlhttp.responseText);
|
||||
if(xmlhttp.responseText){
|
||||
alert(xmlhttp.responseText);
|
||||
}
|
||||
}
|
||||
}
|
||||
const form = document.getElementById('modalEV').querySelector('form');
|
||||
|
||||
Reference in New Issue
Block a user