Spaces:
Paused
Paused
Update templates/proposed-GUI.html
Browse files
templates/proposed-GUI.html
CHANGED
|
@@ -1959,6 +1959,8 @@ var doorSchedulePDF;
|
|
| 1959 |
// Action for when the checkbox is clicked
|
| 1960 |
function handleCheckboxChange(event) {
|
| 1961 |
const sectionValue = projsec.value;
|
|
|
|
|
|
|
| 1962 |
const isMultiSection = sectionValue.startsWith('2.6') || sectionValue.startsWith('2.8');
|
| 1963 |
const checkboxes = document.querySelectorAll('input[name="measureCheckbox"]');
|
| 1964 |
const items = document.querySelectorAll('.measure-item');
|
|
@@ -1968,7 +1970,7 @@ var doorSchedulePDF;
|
|
| 1968 |
|
| 1969 |
// 1. Gather checked checkboxes and their values
|
| 1970 |
const selectedCheckboxes = Array.from(checkboxes).filter(cb => cb.checked);
|
| 1971 |
-
|
| 1972 |
|
| 1973 |
// 2. Set field value and pdfname
|
| 1974 |
measSelect.value = selectedValue.join(', ');
|
|
@@ -1993,7 +1995,7 @@ var doorSchedulePDF;
|
|
| 1993 |
event.target.checked = true;
|
| 1994 |
|
| 1995 |
// Set value and pdfname for single selection
|
| 1996 |
-
|
| 1997 |
measSelect.value = selectedValue;
|
| 1998 |
pdfname = selectedValue;
|
| 1999 |
|
|
|
|
| 1959 |
// Action for when the checkbox is clicked
|
| 1960 |
function handleCheckboxChange(event) {
|
| 1961 |
const sectionValue = projsec.value;
|
| 1962 |
+
let selectedValue = null;
|
| 1963 |
+
|
| 1964 |
const isMultiSection = sectionValue.startsWith('2.6') || sectionValue.startsWith('2.8');
|
| 1965 |
const checkboxes = document.querySelectorAll('input[name="measureCheckbox"]');
|
| 1966 |
const items = document.querySelectorAll('.measure-item');
|
|
|
|
| 1970 |
|
| 1971 |
// 1. Gather checked checkboxes and their values
|
| 1972 |
const selectedCheckboxes = Array.from(checkboxes).filter(cb => cb.checked);
|
| 1973 |
+
selectedValue = selectedCheckboxes.map(cb => cb.value);
|
| 1974 |
|
| 1975 |
// 2. Set field value and pdfname
|
| 1976 |
measSelect.value = selectedValue.join(', ');
|
|
|
|
| 1995 |
event.target.checked = true;
|
| 1996 |
|
| 1997 |
// Set value and pdfname for single selection
|
| 1998 |
+
selectedValue = event.target.value;
|
| 1999 |
measSelect.value = selectedValue;
|
| 2000 |
pdfname = selectedValue;
|
| 2001 |
|