Update StackMonkey.ps1

This commit is contained in:
2025-05-29 11:16:51 -04:00
parent eaf30ead38
commit 6aa54bb45e

View File

@@ -552,12 +552,14 @@ function Build-Checkboxes {
if ($_.SubOptions) {
# join inside the code block is fine
$subHtml = $_.SubOptions |
$subHtml = (
$_.SubOptions |
ForEach-Object {
"<label style='margin-left:20px; display:block;'>
<input type='checkbox' class='sub-option-$taskId' name='$($_.Value)' value='$($_.Value)'> $($_.Label)
</label>"
} -join "`n"
}
) -join "`n"
$html += @"
<div id='${taskId}OptionsContainer' style='display:none; margin-top:4px;'>