From f28a8d032c45751905c3af19b2c0387d4c7a0e89 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 14 Sep 2022 12:34:04 +0200 Subject: [PATCH] Link labels to their corresponding checkbox so that they become easier to click --- assets/js/pages/providers.js | 5 ++++- assets/js/pages/secretaries.js | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/assets/js/pages/providers.js b/assets/js/pages/providers.js index fc9f4270..c686e58b 100755 --- a/assets/js/pages/providers.js +++ b/assets/js/pages/providers.js @@ -569,6 +569,8 @@ App.Pages.Providers = (function () { addEventListeners(); vars('services').forEach((service) => { + const checkboxId = `provider-service-${service.id}`; + $('
', { 'class': 'checkbox', 'html': [ @@ -576,6 +578,7 @@ App.Pages.Providers = (function () { 'class': 'checkbox form-check', 'html': [ $('', { + 'id': checkboxId, 'class': 'form-check-input', 'type': 'checkbox', 'data-id': service.id, @@ -586,7 +589,7 @@ App.Pages.Providers = (function () { $('