From 0d5f673ecf9fc23767d5796da64b75a7d4e57017 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 14 Dec 2020 09:53:16 +0200 Subject: [PATCH] User timezone must not be empied by default as it is required. --- application/views/backend/users.php | 11 ++++++----- assets/js/backend_users_admins.js | 8 ++++++-- assets/js/backend_users_providers.js | 2 ++ assets/js/backend_users_secretaries.js | 2 ++ 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/application/views/backend/users.php b/application/views/backend/users.php index db957069..1ead72f1 100755 --- a/application/views/backend/users.php +++ b/application/views/backend/users.php @@ -261,9 +261,9 @@
- +

@@ -549,9 +549,9 @@
- +

@@ -757,8 +757,9 @@
- +

diff --git a/assets/js/backend_users_admins.js b/assets/js/backend_users_admins.js index 9b379b67..8f2e546b 100644 --- a/assets/js/backend_users_admins.js +++ b/assets/js/backend_users_admins.js @@ -308,8 +308,12 @@ $('#admins .add-edit-delete-group').show(); $('#admins .save-cancel-group').hide(); - $('#admins .record-details').find('input, select, textarea').prop('disabled', true); - $('#admins .record-details').find('input, textarea').val(''); + $('#admins .record-details') + .find('input, select, textarea') + .val('') + .prop('disabled', true); + $('#admins .record-details #admin-calendar-view').val('default'); + $('#admins .record-details #admin-timezone').val('UTC'); $('#edit-admin, #delete-admin').prop('disabled', true); $('#admins .has-error').removeClass('has-error'); diff --git a/assets/js/backend_users_providers.js b/assets/js/backend_users_providers.js index f27793da..2f0c685a 100755 --- a/assets/js/backend_users_providers.js +++ b/assets/js/backend_users_providers.js @@ -350,6 +350,8 @@ $('#providers .record-details').find('input, select, textarea') .val('') .prop('disabled', true); + $('#providers .record-details #provider-calendar-view').val('default'); + $('#providers .record-details #provider-timezone').val('UTC'); $('#providers .add-break, .add-working-plan-exception, #reset-working-plan').prop('disabled', true); BackendUsers.wp.timepickers(true); $('#providers .working-plan input:text').timepicker('destroy'); diff --git a/assets/js/backend_users_secretaries.js b/assets/js/backend_users_secretaries.js index c6310306..8ddb41e2 100644 --- a/assets/js/backend_users_secretaries.js +++ b/assets/js/backend_users_secretaries.js @@ -324,6 +324,8 @@ .find('input, select, textarea') .val('') .prop('disabled', true); + $('#secretaries .record-details #secretary-calendar-view').val('default'); + $('#secretaries .record-details #secretary-timezone').val('UTC'); $('#secretaries .add-edit-delete-group').show(); $('#secretaries .save-cancel-group').hide(); $('#edit-secretary, #delete-secretary').prop('disabled', true);