mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-01 21:15:15 +08:00
moved focuswords to do dom-util
This commit is contained in:
parent
e9dd9bedb9
commit
44bb61c734
3 changed files with 7 additions and 6 deletions
|
|
@ -236,3 +236,9 @@ export function updateTestModesNotice(
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
function focusWords() {
|
||||
if (!$("#wordsWrapper").hasClass("hidden")) {
|
||||
$("#wordsInput").focus();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import {
|
|||
swapElements,
|
||||
accountIconLoading,
|
||||
updateTestModesNotice,
|
||||
focusWords,
|
||||
} from "./dom-util";
|
||||
import * as Misc from "./misc";
|
||||
import * as CloudFunctions from "./cloud-functions";
|
||||
|
|
|
|||
|
|
@ -2885,12 +2885,6 @@ function restartTest(withSameWordset = false, nosave = false, event) {
|
|||
);
|
||||
}
|
||||
|
||||
function focusWords() {
|
||||
if (!$("#wordsWrapper").hasClass("hidden")) {
|
||||
$("#wordsInput").focus();
|
||||
}
|
||||
}
|
||||
|
||||
function changePage(page) {
|
||||
if (pageTransition) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue