Update installation.js
Hello, Thank you for your work! The installation did not display errors.
This commit is contained in:
parent
0fe96a28d4
commit
631cc01e33
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue