MCPcopy Create free account
hub / github.com/error311/FileRise / handleCopySelected

Function handleCopySelected

public/js/fileActions.js:1019–1031  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1017});
1018
1019export function handleCopySelected(e) {
1020 e.preventDefault();
1021 e.stopImmediatePropagation();
1022 const checkboxes = getActiveSelectedFileCheckboxes();
1023 if (checkboxes.length === 0) {
1024 showToast(t('no_files_selected_for_copy'), 5000, 'warning');
1025 return;
1026 }
1027 window.filesToCopy = Array.from(checkboxes).map(chk => chk.value);
1028 document.getElementById("copyFilesModal").style.display = "block";
1029 const target = getOtherPaneTarget();
1030 initCopyMoveSourceSelect('copy', target.folder, target.sourceId);
1031}
1032
1033export async function loadCopyMoveFolderListForModal(dropdownId, preferredFolder = "", sourceId = "") {
1034 const folderSelect = document.getElementById(dropdownId);

Callers 2

fileListView.jsFile · 0.85
menuClickDelegateFunction · 0.85

Calls 5

tFunction · 0.85
getOtherPaneTargetFunction · 0.85
initCopyMoveSourceSelectFunction · 0.85
showToastFunction · 0.70

Tested by

no test coverage detected