mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
🚨
This commit is contained in:
parent
5ec9d9dc36
commit
3966d0b9d0
2 changed files with 5 additions and 5 deletions
|
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue