mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 11:23:10 +03:00
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() {
|
||||
try {
|
||||
$alert.hide();
|
||||
$alert
|
||||
.removeClass('alert-danger')
|
||||
.hide();
|
||||
$('input').closest('.form-group').removeClass('has-error');
|
||||
|
||||
// Check for empty fields.
|
||||
|
@ -114,6 +116,7 @@ $(function () {
|
|||
return true;
|
||||
} catch (error) {
|
||||
$alert
|
||||
.addClass('alert-danger')
|
||||
.text(error)
|
||||
.show();
|
||||
|
||||
|
|
Loading…
Reference in a new issue