mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-27 22:43:15 +08:00
Fix JS errors
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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 %}">
|
||||
|
||||
Reference in New Issue
Block a user