From 6585c38eb9a61bff3d81ebb67d192cf024ad014a Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 18 Jun 2020 14:02:02 +0200 Subject: [PATCH] Toggle the visibility of the alert element by toggling the "hidden" class (#705) --- assets/js/installation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/installation.js b/assets/js/installation.js index 187b3e89..7a259116 100644 --- a/assets/js/installation.js +++ b/assets/js/installation.js @@ -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; }