()
| 194 | } |
| 195 | |
| 196 | function fillTextareaWithPaths() { |
| 197 | const selectedCheckboxes = getVisibleCheckedCheckboxes(); |
| 198 | |
| 199 | if (selectedCheckboxes.length === 0) { |
| 200 | showModalWarning( |
| 201 | "No folders selected. Please select folders from the table first.", |
| 202 | ); |
| 203 | document.getElementById("bulk-actions-textarea").value = ""; |
| 204 | return; |
| 205 | } |
| 206 | |
| 207 | hideModalWarning(); |
| 208 | const paths = Array.from(selectedCheckboxes).map((checkbox) => |
| 209 | checkbox.getAttribute("data-path"), |
| 210 | ); |
| 211 | document.getElementById("bulk-actions-textarea").value = paths.join(" "); |
| 212 | } |
| 213 | |
| 214 | function copyToClipboard(text) { |
| 215 | // Modern clipboard API (requires HTTPS or localhost) |
nothing calls this directly
no test coverage detected