moved click handler

removes 1 circular dependency
part of #2462
This commit is contained in:
Miodec 2022-02-11 14:04:39 +01:00
parent a2558bfc9e
commit 457117a03c
2 changed files with 4 additions and 5 deletions

View file

@ -159,3 +159,7 @@ $(document).on("click", "#top #menu .icon-button", (e) => {
}
return false;
});
$(".pageTest .loginTip .link").click(async (event) => {
change("login");
});

View file

@ -9,7 +9,6 @@ import * as Caret from "./caret";
import * as OutOfFocus from "./out-of-focus";
import * as Replay from "./replay";
import * as Misc from "../misc";
import * as PageController from "./../controllers/page-controller";
import * as SlowTimer from "../states/slow-timer";
$(document).ready(() => {
@ -809,10 +808,6 @@ $(".pageTest #toggleBurstHeatmap").click(async (event) => {
UpdateConfig.setBurstHeatmap(!Config.burstHeatmap);
});
$(".pageTest .loginTip .link").click(async (event) => {
PageController.change("login");
});
$(document).on("mouseleave", "#resultWordsHistory .words .word", (e) => {
$(".wordInputAfter").remove();
});