Toggle the visibility of the alert element by toggling the "hidden" class (#705)

This commit is contained in:
Alex Tselegidis 2020-06-18 14:02:02 +02:00
parent e857d3a37e
commit 6585c38eb9

View file

@ -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;
}