updated header and booking page

This commit is contained in:
Juthatip McDevitt 2024-06-24 20:48:11 -05:00
parent 3f50e10ba7
commit e6df8f4e0c
2 changed files with 7 additions and 1 deletions

View file

@ -192,6 +192,7 @@
alert('error', 'Please login to reserve a room');
}
}
</script>
</body>

View file

@ -316,7 +316,12 @@
} else if(this.responseText == 'invalid_pass'){
alert('error', 'Wrong credentials, please try again!');
} else{
window.location = window.location.pathname;
let fileurl = window.location.href.split('/').pop().split('?').shift();
if(fileurl == 'booking.php'){
window.location = window.location.href;
} else{
window.location = window.location.pathname;
}
}
}