mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 17:56:09 +01:00
📝 bookmark
This commit is contained in:
parent
cad913e4c8
commit
398afa854f
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ export const openBookmarkMenu = (element: HTMLElement, event: MouseEvent, bookma
|
|||
icon: "iconTrashcan",
|
||||
label: window.siyuan.languages.remove,
|
||||
click: () => {
|
||||
const bookmarkText = (id ? element.parentElement.previousElementSibling : element).querySelector(".b3-list-item__text").textContent;
|
||||
const bookmarkText = element.querySelector(".b3-list-item__text").textContent;
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.confirmDelete} <b>${escapeHtml(bookmarkText)}</b>?`, () => {
|
||||
if (id) {
|
||||
fetchPost("/api/attr/setBlockAttrs", {id, attrs: {bookmark: ""}}, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue