From 273a218ba8c058a03d06b803c92605875e90af60 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 7 Jan 2022 08:42:43 +0100 Subject: [PATCH] Replace GeneralFunctions references --- assets/js/pages/customers.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/pages/customers.js b/assets/js/pages/customers.js index 5e404c79..69dedfb1 100644 --- a/assets/js/pages/customers.js +++ b/assets/js/pages/customers.js @@ -205,7 +205,7 @@ App.Pages.Customers = (function () { } // Validate email address. - if (!GeneralFunctions.validateEmail($('#email').val())) { + if (!App.Utils.Validation.email($('#email').val())) { $('#email').addClass('is-invalid'); throw new Error(App.Lang.invalid_email); } @@ -280,14 +280,16 @@ App.Pages.Customers = (function () { return; } - var start = GeneralFunctions.formatDate( + var start = App.Utils.Date.format( moment(appointment.start_datetime).toDate(), App.Vars.date_format, + App.Vars.time_format, true ); - var end = GeneralFunctions.formatDate( + var end = App.Utils.Date.format( moment(appointment.end_datetime).toDate(), App.Vars.date_format, + App.Vars.time_format, true );