Fix JS errors

This commit is contained in:
Sascha Ißbrücker
2026-01-02 08:09:20 +01:00
parent f7c371bce1
commit 4291bda9d4
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ document.addEventListener("keydown", (event) => {
event.preventDefault();
// Detect current bookmark list item
const items = document.querySelectorAll("ul.bookmark-list > li");
const items = [...document.querySelectorAll("ul.bookmark-list > li")];
const path = event.composedPath();
const currentItem = path.find((item) => items.includes(item));

View File

@@ -1,7 +1,8 @@
{% extends "shared/layout.html" %}
{% load static shared bookmarks %}
{% block content %}
<ld-bookmark-page class="bookmarks-page grid columns-md-1 {% if bookmark_list.collapse_side_panel %}collapse-side-panel{% endif %}">
<ld-bookmark-page {% if not bookmark_list.bulk_edit_enabled %}no-bulk-edit{% endif %}
class="bookmarks-page grid columns-md-1 {% if bookmark_list.collapse_side_panel %}collapse-side-panel{% endif %}">
{# Bookmark list #}
<main class="main col-2" aria-labelledby="main-heading">
<div class="section-header {% if bookmark_list.bulk_edit_enabled %}mb-0{% endif %}">