This commit is contained in:
Vanessa 2023-04-12 14:48:01 +08:00
parent 5ec9d9dc36
commit 3966d0b9d0
2 changed files with 5 additions and 5 deletions

View file

@ -199,7 +199,7 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: num
index,
blocks
});
})
});
event.stopPropagation();
event.preventDefault();
return;
@ -358,8 +358,8 @@ const nextCard = (options: {
const allDone = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>) => {
countElement.classList.add("fn__none");
editor.protyle.element.classList.add("fn__none");
const emptyElement = editor.protyle.element.nextElementSibling
emptyElement.innerHTML = `<div>🔮</div>${window.siyuan.languages.noDueCard}`
const emptyElement = editor.protyle.element.nextElementSibling;
emptyElement.innerHTML = `<div>🔮</div>${window.siyuan.languages.noDueCard}`;
emptyElement.classList.remove("fn__none");
actionElements[0].classList.add("fn__none");
actionElements[1].classList.add("fn__none");
@ -376,4 +376,4 @@ const newRound = (countElement: Element, editor: Protyle, actionElements: NodeLi
emptyElement.classList.remove("fn__none");
actionElements[0].classList.add("fn__none");
actionElements[1].classList.add("fn__none");
}
};

View file

@ -16,7 +16,7 @@ import {saveScroll} from "../protyle/scroll/saveScroll";
export const getCurrentEditor = () => {
return window.siyuan.mobile.popEditor || window.siyuan.mobile.editor;
}
};
export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) => {
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {id, action};