From 5820b82e9cff5f7a956cc9a8ae4f237f9310b264 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 26 Jan 2025 22:24:37 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 62 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/TGBeta.ps1 b/TGBeta.ps1 index 760a8c3..e383839 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -590,74 +590,74 @@ function GetHtmlContent {

This new deployment method ensures everything is successfully deployed with greater ease!

- -
+ +
- -
+ +
@@ -784,15 +784,7 @@ function GetHtmlContent { const optionsContainer = document.getElementById('dattoRMMOptionsContainer'); const n8nPasswordContainer = document.getElementById('n8nPasswordContainer'); const dattoRMMContainer = document.getElementById('DattoRMMContainer'); - - - - checkboxes.forEach(checkbox => { - if (checkbox !== selectedCheckbox) { - checkbox.checked = selectedCheckbox.checked; - } - }); - + if (dattoRMMCheckbox.checked) { optionsContainer.style.display = 'block'; n8nPasswordContainer.style.display = 'block'; @@ -804,6 +796,13 @@ function GetHtmlContent { } } + function toggleLeftColumnCheckboxes(selectAllCheckbox) { + const leftCheckboxes = document.querySelectorAll('#leftColumn input[type="checkbox"]:not(#selectAllLeftCheckbox)'); + leftCheckboxes.forEach(checkbox => { + checkbox.checked = selectAllCheckbox.checked; + }); + } + function updateSelectAllonboard() { const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox'); const checkboxes = document @@ -814,6 +813,13 @@ function GetHtmlContent { selectAllCheckbox.checked = Array.from(checkboxes).every(checkbox => checkbox.checked); } + function gatherSelectedTasks() { + const selectedLeftTasks = Array.from(document.querySelectorAll('.left-checkbox:checked')).map(checkbox => checkbox.name); + const selectedRightTasks = Array.from(document.querySelectorAll('.right-checkbox:checked')).map(checkbox => checkbox.name); + return [...selectedLeftTasks, ...selectedRightTasks]; + } + + // Attach the updateSelectAllonboard function to all individual checkboxes document.querySelectorAll('#onboardTab input[type="checkbox"]:not(#selectAllOnboardCheckbox)').forEach(checkbox => { checkbox.addEventListener('change', updateSelectAllonboard);