updated header and booking page
This commit is contained in:
parent
3f50e10ba7
commit
e6df8f4e0c
2 changed files with 7 additions and 1 deletions
|
@ -192,6 +192,7 @@
|
|||
alert('error', 'Please login to reserve a room');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue