mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-09 17:42:21 +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
|
||||
.text('Easy!Appointments has been successfully installed!')
|
||||
.addClass('alert-success')
|
||||
.show();
|
||||
.removeClass('hidden');
|
||||
|
||||
setTimeout(function () {
|
||||
window.location.href = GlobalVariables.baseUrl + '/index.php/backend';
|
||||
|
@ -71,7 +71,7 @@ $(function () {
|
|||
try {
|
||||
$alert
|
||||
.removeClass('alert-danger')
|
||||
.hide();
|
||||
.addClass('hidden');
|
||||
$('input').closest('.form-group').removeClass('has-error');
|
||||
|
||||
// Check for empty fields.
|
||||
|
@ -116,7 +116,7 @@ $(function () {
|
|||
$alert
|
||||
.addClass('alert-danger')
|
||||
.text(error.message)
|
||||
.show();
|
||||
.removeClass('hidden');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue