rsjtzsr
This commit is contained in:
parent
c324bb0447
commit
21681ea96e
@ -33,6 +33,9 @@ export async function loadCardDeck() {
|
|||||||
const body = document.getElementById("qm-body-carddeck");
|
const body = document.getElementById("qm-body-carddeck");
|
||||||
if (!body) return;
|
if (!body) return;
|
||||||
|
|
||||||
|
currentDeckId = null;
|
||||||
|
deckCards = [];
|
||||||
|
|
||||||
body.innerHTML = renderShell();
|
body.innerHTML = renderShell();
|
||||||
attachShellEvents();
|
attachShellEvents();
|
||||||
|
|
||||||
@ -597,6 +600,7 @@ function renderDeckSelect() {
|
|||||||
`<option value="${d.id}" ${d.id === currentDeckId ? "selected" : ""}>${d.name}</option>`,
|
`<option value="${d.id}" ${d.id === currentDeckId ? "selected" : ""}>${d.name}</option>`,
|
||||||
)
|
)
|
||||||
.join("");
|
.join("");
|
||||||
|
sel.value = currentDeckId || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ══════════════════════════════════════════════
|
/* ══════════════════════════════════════════════
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user