mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Toggle the visibility of the alert element by toggling the "hidden" class (#705)
This commit is contained in:
parent
e857d3a37e
commit
6585c38eb9
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ $(function () {
|
||||||
$alert
|
$alert
|
||||||
.text('Easy!Appointments has been successfully installed!')
|
.text('Easy!Appointments has been successfully installed!')
|
||||||
.addClass('alert-success')
|
.addClass('alert-success')
|
||||||
.show();
|
.removeClass('hidden');
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
window.location.href = GlobalVariables.baseUrl + '/index.php/backend';
|
window.location.href = GlobalVariables.baseUrl + '/index.php/backend';
|
||||||
|
@ -71,7 +71,7 @@ $(function () {
|
||||||
try {
|
try {
|
||||||
$alert
|
$alert
|
||||||
.removeClass('alert-danger')
|
.removeClass('alert-danger')
|
||||||
.hide();
|
.addClass('hidden');
|
||||||
$('input').closest('.form-group').removeClass('has-error');
|
$('input').closest('.form-group').removeClass('has-error');
|
||||||
|
|
||||||
// Check for empty fields.
|
// Check for empty fields.
|
||||||
|
@ -116,7 +116,7 @@ $(function () {
|
||||||
$alert
|
$alert
|
||||||
.addClass('alert-danger')
|
.addClass('alert-danger')
|
||||||
.text(error.message)
|
.text(error.message)
|
||||||
.show();
|
.removeClass('hidden');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue