mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-27 09:03:09 +03:00
Replace GeneralFunctions references
This commit is contained in:
parent
fe06d8382e
commit
273a218ba8
1 changed files with 5 additions and 3 deletions
|
@ -205,7 +205,7 @@ App.Pages.Customers = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate email address.
|
// Validate email address.
|
||||||
if (!GeneralFunctions.validateEmail($('#email').val())) {
|
if (!App.Utils.Validation.email($('#email').val())) {
|
||||||
$('#email').addClass('is-invalid');
|
$('#email').addClass('is-invalid');
|
||||||
throw new Error(App.Lang.invalid_email);
|
throw new Error(App.Lang.invalid_email);
|
||||||
}
|
}
|
||||||
|
@ -280,14 +280,16 @@ App.Pages.Customers = (function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = GeneralFunctions.formatDate(
|
var start = App.Utils.Date.format(
|
||||||
moment(appointment.start_datetime).toDate(),
|
moment(appointment.start_datetime).toDate(),
|
||||||
App.Vars.date_format,
|
App.Vars.date_format,
|
||||||
|
App.Vars.time_format,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
var end = GeneralFunctions.formatDate(
|
var end = App.Utils.Date.format(
|
||||||
moment(appointment.end_datetime).toDate(),
|
moment(appointment.end_datetime).toDate(),
|
||||||
App.Vars.date_format,
|
App.Vars.date_format,
|
||||||
|
App.Vars.time_format,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue