mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
2994a95937
commit
72acce2c86
1 changed files with 2 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ export const bindCardEvent = async (options: {
|
|||
} else {
|
||||
options.cardsData.unreviewedOldCardCount--;
|
||||
}
|
||||
options.element.dispatchEvent(new CustomEvent("click", {detail: "0"}));
|
||||
options.element.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: "0"}));
|
||||
options.cardsData.cards.splice(index, 1);
|
||||
index--;
|
||||
timedialog.destroy();
|
||||
|
|
@ -444,7 +444,7 @@ export const bindCardEvent = async (options: {
|
|||
} else {
|
||||
options.cardsData.unreviewedOldCardCount--;
|
||||
}
|
||||
options.element.dispatchEvent(new CustomEvent("click", {detail: "0"}));
|
||||
options.element.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: "0"}));
|
||||
transaction(undefined, [{
|
||||
action: "removeFlashcards",
|
||||
deckID: Constants.QUICK_DECK_ID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue