mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Merge pull request #853 from popod/fix-settings-current-user-validation
Fix current user validation
This commit is contained in:
commit
15ae98b506
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@
|
||||||
try {
|
try {
|
||||||
// Validate required fields.
|
// Validate required fields.
|
||||||
var missingRequired = false;
|
var missingRequired = false;
|
||||||
$('#user .required').each(function (index, requiredField) {
|
$('#current-user .required').each(function (index, requiredField) {
|
||||||
if (!$(requiredField).val()) {
|
if (!$(requiredField).val()) {
|
||||||
$(requiredField).closest('.form-group').addClass('has-error');
|
$(requiredField).closest('.form-group').addClass('has-error');
|
||||||
missingRequired = true;
|
missingRequired = true;
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Backend.displayNotification(exc.message);
|
Backend.displayNotification(error.message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue