Update installation.js

Hello,
Thank you for your work! The installation did not display errors.
This commit is contained in:
athAtp 2020-02-17 03:14:53 +02:00 committed by GitHub
parent 0fe96a28d4
commit 631cc01e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,9 @@ $(function () {
*/ */
function validate() { function validate() {
try { try {
$alert.hide(); $alert
.removeClass('alert-danger')
.hide();
$('input').closest('.form-group').removeClass('has-error'); $('input').closest('.form-group').removeClass('has-error');
// Check for empty fields. // Check for empty fields.
@ -114,6 +116,7 @@ $(function () {
return true; return true;
} catch (error) { } catch (error) {
$alert $alert
.addClass('alert-danger')
.text(error) .text(error)
.show(); .show();