* Render table view
(listEl)
| 7275 | |
| 7276 | |
| 7277 | function getSelectedFileValuesForList(listEl) { |
| 7278 | if (!listEl) return []; |
| 7279 | return Array.from(listEl.querySelectorAll('tbody .file-checkbox:checked')) |
| 7280 | .map(cb => cb.value); |
| 7281 | } |
| 7282 | |
| 7283 | function restoreSelectedFileValues(listEl, selectedValues) { |
| 7284 | if (!listEl || !Array.isArray(selectedValues) || !selectedValues.length) return; |