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