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