mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 Cannot select Again for spaced repetition Fix https://github.com/siyuan-note/siyuan/issues/8875
This commit is contained in:
parent
7a3c8da349
commit
5d20a2d631
1 changed files with 8 additions and 8 deletions
|
|
@ -80,28 +80,28 @@ export const genCardHTML = (options: {
|
|||
</div>
|
||||
<div>
|
||||
<span></span>
|
||||
<button data-type="0" aria-label="1 / j" class="b3-button b3-button--error b3-tooltips__n b3-tooltips">
|
||||
<button data-type="1" aria-label="1 / j" class="b3-button b3-button--error b3-tooltips__n b3-tooltips">
|
||||
<div>🙈</div>
|
||||
${window.siyuan.languages.cardRatingAgain} (1)
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<span></span>
|
||||
<button data-type="1" aria-label="2 / k" class="b3-button b3-button--warning b3-tooltips__n b3-tooltips">
|
||||
<button data-type="2" aria-label="2 / k" class="b3-button b3-button--warning b3-tooltips__n b3-tooltips">
|
||||
<div>😬</div>
|
||||
${window.siyuan.languages.cardRatingHard} (2)
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<span></span>
|
||||
<button data-type="2" aria-label="3 / l" class="b3-button b3-button--info b3-tooltips__n b3-tooltips">
|
||||
<button data-type="3" aria-label="3 / l" class="b3-button b3-button--info b3-tooltips__n b3-tooltips">
|
||||
<div>😊</div>
|
||||
${window.siyuan.languages.cardRatingGood} (3)
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<span></span>
|
||||
<button data-type="3" aria-label="4 / ;" class="b3-button b3-button--success b3-tooltips__n b3-tooltips">
|
||||
<button data-type="4" aria-label="4 / ;" class="b3-button b3-button--success b3-tooltips__n b3-tooltips">
|
||||
<div>🌈</div>
|
||||
${window.siyuan.languages.cardRatingEasy} (4)
|
||||
</button>
|
||||
|
|
@ -184,13 +184,13 @@ export const bindCardEvent = (options: {
|
|||
let type = "";
|
||||
if (typeof event.detail === "string") {
|
||||
if (event.detail === "1" || event.detail === "j") {
|
||||
type = "0";
|
||||
} else if (event.detail === "2" || event.detail === "k") {
|
||||
type = "1";
|
||||
} else if (event.detail === "3" || event.detail === "l") {
|
||||
} else if (event.detail === "2" || event.detail === "k") {
|
||||
type = "2";
|
||||
} else if (event.detail === "4" || event.detail === ";") {
|
||||
} else if (event.detail === "3" || event.detail === "l") {
|
||||
type = "3";
|
||||
} else if (event.detail === "4" || event.detail === ";") {
|
||||
type = "4";
|
||||
} else if (event.detail === " ") {
|
||||
type = "-1";
|
||||
} else if (event.detail === "p") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue