feat: checkbox verwijderd
This commit is contained in:
@@ -587,18 +587,6 @@ function createBrowseItem(pane, entry, kind) {
|
||||
loadBrowsePane(pane);
|
||||
};
|
||||
|
||||
const marker = document.createElement("input");
|
||||
marker.type = "checkbox";
|
||||
marker.className = "select-marker";
|
||||
marker.checked = paths.includes(entry.path);
|
||||
marker.onclick = (ev) => {
|
||||
ev.stopPropagation();
|
||||
setActivePane(pane);
|
||||
toggleSelection(pane, { path: entry.path, name: entry.name, kind });
|
||||
loadBrowsePane(pane);
|
||||
};
|
||||
li.append(marker);
|
||||
|
||||
const name = document.createElement("span");
|
||||
name.className = `entry-name ${kind === "directory" ? "entry-dir" : "entry-file"}`;
|
||||
name.append(createMediaSlot({ ...entry, kind }));
|
||||
@@ -682,7 +670,6 @@ function renderPaneItems(pane) {
|
||||
clearSelectionAnchor(pane);
|
||||
renderPaneItems(pane);
|
||||
};
|
||||
up.append(document.createElement("span"));
|
||||
const upNameCell = document.createElement("span");
|
||||
upNameCell.className = "entry-name entry-dir";
|
||||
const upMedia = document.createElement("span");
|
||||
@@ -723,16 +710,6 @@ function renderPaneItems(pane) {
|
||||
setSingleSelectionAtIndex(pane, { path: entry.path, name: entry.name, kind: entry.kind }, index);
|
||||
renderPaneItems(pane);
|
||||
};
|
||||
const checkbox = row.querySelector(".select-marker");
|
||||
if (checkbox) {
|
||||
checkbox.onclick = (ev) => {
|
||||
ev.stopPropagation();
|
||||
setActivePane(pane);
|
||||
model.currentRowIndex = index;
|
||||
toggleSelectionAtIndex(pane, { path: entry.path, name: entry.name, kind: entry.kind }, index);
|
||||
renderPaneItems(pane);
|
||||
};
|
||||
}
|
||||
const dirLink = row.querySelector(".dir-link");
|
||||
if (dirLink) {
|
||||
dirLink.onclick = (ev) => {
|
||||
|
||||
Reference in New Issue
Block a user