mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Formatting
This commit is contained in:
parent
618483a6e7
commit
0c1aa173f0
2 changed files with 7 additions and 7 deletions
|
|
@ -72,9 +72,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
function onShown() {
|
function onShown() {
|
||||||
searchInput?.focus();
|
searchInput?.focus();
|
||||||
for(const element of filteredElements) {
|
for (const element of filteredElements) {
|
||||||
if(element.classList.contains("selected")) {
|
if (element.classList.contains("selected")) {
|
||||||
element.scrollIntoView({block: "start"});
|
element.scrollIntoView({ block: "start" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -91,7 +91,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</LabelButton>
|
</LabelButton>
|
||||||
|
|
||||||
<Shortcut {keyCombination} on:action={toggleModal} />
|
<Shortcut {keyCombination} on:action={toggleModal} />
|
||||||
<Modal bind:this={modal} onShown={onShown} dialogClass="modal-lg">
|
<Modal bind:this={modal} {onShown} dialogClass="modal-lg">
|
||||||
<div slot="header" class="modal-header">
|
<div slot="header" class="modal-header">
|
||||||
<IconConstrain iconSize={90}>
|
<IconConstrain iconSize={90}>
|
||||||
<Icon {icon} />
|
<Icon {icon} />
|
||||||
|
|
|
||||||
|
|
@ -1038,7 +1038,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
if (notetypeId) {
|
if (notetypeId) {
|
||||||
selectedNotetypeId = notetypeId;
|
selectedNotetypeId = notetypeId;
|
||||||
}
|
}
|
||||||
if(!selectedNotetypeId && copyFromNote) {
|
if (!selectedNotetypeId && copyFromNote) {
|
||||||
selectedNotetypeId = copyFromNote?.notetypeId;
|
selectedNotetypeId = copyFromNote?.notetypeId;
|
||||||
}
|
}
|
||||||
if (mode === "add") {
|
if (mode === "add") {
|
||||||
|
|
@ -1211,10 +1211,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
async function loadNote(args: Partial<LoadNoteArgs>) {
|
async function loadNote(args: Partial<LoadNoteArgs>) {
|
||||||
if (args.initial) {
|
if (args.initial) {
|
||||||
initialLoadArgs = {...args, initial: false};
|
initialLoadArgs = { ...args, initial: false };
|
||||||
}
|
}
|
||||||
if (typeof args.focusTo === "undefined") {
|
if (typeof args.focusTo === "undefined") {
|
||||||
args = {...args, focusTo: focusedFieldIndex};
|
args = { ...args, focusTo: focusedFieldIndex };
|
||||||
}
|
}
|
||||||
loadDebouncer.schedule(async () => {
|
loadDebouncer.schedule(async () => {
|
||||||
await loadNoteInner(
|
await loadNoteInner(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue