mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 17:24:21 +01:00
This commit is contained in:
parent
45302d5a28
commit
56ca4ed2e1
2 changed files with 18 additions and 14 deletions
|
|
@ -129,14 +129,16 @@ export const viewCards = (deckID: string, title: string, cb:(response:IWebSocket
|
|||
if (!nextElment && target.parentElement.parentElement.childElementCount > 1) {
|
||||
nextElment = target.parentElement.parentElement.firstElementChild;
|
||||
}
|
||||
|
||||
if (!nextElment) {
|
||||
getArticle(edit, "");
|
||||
listElement.innerHTML = `<div class="b3-list--empty">${window.siyuan.languages.emptyContent}</div>`
|
||||
} else {
|
||||
getArticle(edit, nextElment.getAttribute("data-id"));
|
||||
listElement.querySelector(".b3-list-item--focus")?.classList.remove("b3-list-item--focus");
|
||||
nextElment.classList.add("b3-list-item--focus");
|
||||
target.parentElement.remove();
|
||||
}
|
||||
target.parentElement.remove();
|
||||
cb(removeResponse);
|
||||
});
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue