(rootEl)
| 83 | return null; |
| 84 | } |
| 85 | function getSelectedFileNames(rootEl) { |
| 86 | const scope = rootEl?.closest?.('#fileList, #fileListSecondary') || document.getElementById('fileList') || document; |
| 87 | const boxes = Array.from(scope.querySelectorAll('.file-checkbox:checked')); |
| 88 | const names = boxes.map(cb => getNameFromAny(cb)).filter(Boolean); |
| 89 | // de-dup just in case |
| 90 | return Array.from(new Set(names)); |
| 91 | } |
| 92 | function makeDragImage(labelText, iconName = 'insert_drive_file') { |
| 93 | const isDark = document.body.classList.contains('dark-mode'); |
| 94 |
no test coverage detected