feat: checkbox verwijderd

This commit is contained in:
kodi
2026-03-12 12:46:48 +01:00
parent 3b376fa8ff
commit 559b881b6d
6 changed files with 187 additions and 41 deletions
-23
View File
@@ -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) => {