From 5df1bd49023cea2690a8606bbf07f56922011094 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 14 Dec 2020 20:40:10 +0200 Subject: [PATCH] Made the timezone and language fields required, in the backend customers page --- application/views/backend/customers.php | 7 ++++--- assets/js/backend_customers_helper.js | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/application/views/backend/customers.php b/application/views/backend/customers.php index ab5f9f1d..9312238c 100755 --- a/application/views/backend/customers.php +++ b/application/views/backend/customers.php @@ -154,16 +154,17 @@
- +
- +
diff --git a/assets/js/backend_customers_helper.js b/assets/js/backend_customers_helper.js index 3fe6bd3c..b22e30e3 100644 --- a/assets/js/backend_customers_helper.js +++ b/assets/js/backend_customers_helper.js @@ -259,6 +259,7 @@ .find('input, select, textarea') .val('') .prop('disabled', true); + $('.record-details #timezone').val('UTC'); $('#language').val('english'); @@ -350,7 +351,7 @@ // Timezone $('', { - 'text': GlobalVariables.timezones[GlobalVariables.user.timezone] + 'text': GlobalVariables.timezones[appointment.provider.timezone] }) ] })