mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-22 01:19:11 +08:00
updated event handlers
This commit is contained in:
parent
dcd4bc876c
commit
f43dc97ffb
2 changed files with 11 additions and 15 deletions
|
|
@ -174,13 +174,13 @@ $("#tagsWrapper #tagsEdit input").on("keypress", (e) => {
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".pageSettings .section.tags .addTagButton", () => {
|
||||
$(".pageSettings .section.tags").on("click", ".addTagButton", () => {
|
||||
show("add");
|
||||
});
|
||||
|
||||
$(document).on(
|
||||
$(".pageSettings .section.tags").on(
|
||||
"click",
|
||||
".pageSettings .section.tags .tagsList .tag .editButton",
|
||||
".tagsList .tag .editButton",
|
||||
(e) => {
|
||||
const tagid = $(e.currentTarget).parent(".tag").attr("id");
|
||||
const name = $(e.currentTarget)
|
||||
|
|
@ -191,9 +191,9 @@ $(document).on(
|
|||
}
|
||||
);
|
||||
|
||||
$(document).on(
|
||||
$(".pageSettings .section.tags").on(
|
||||
"click",
|
||||
".pageSettings .section.tags .tagsList .tag .clearPbButton",
|
||||
".tagsList .tag .clearPbButton",
|
||||
(e) => {
|
||||
const tagid = $(e.currentTarget).parent(".tag").attr("id");
|
||||
const name = $(e.currentTarget)
|
||||
|
|
@ -204,9 +204,9 @@ $(document).on(
|
|||
}
|
||||
);
|
||||
|
||||
$(document).on(
|
||||
$(".pageSettings .section.tags").on(
|
||||
"click",
|
||||
".pageSettings .section.tags .tagsList .tag .removeButton",
|
||||
".tagsList .tag .removeButton",
|
||||
(e) => {
|
||||
const tagid = $(e.currentTarget).parent(".tag").attr("id");
|
||||
const name = $(e.currentTarget)
|
||||
|
|
|
|||
|
|
@ -114,14 +114,10 @@ $("#pbTablesPopupWrapper").on("click", (e) => {
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".pageAccount .profile .pbsTime .showAllButton", () => {
|
||||
$(".pageAccount .profile").on("click", ".pbsTime .showAllButton", () => {
|
||||
show("time");
|
||||
});
|
||||
|
||||
$(document).on(
|
||||
"click",
|
||||
".pageAccount .profile .pbsWords .showAllButton",
|
||||
() => {
|
||||
show("words");
|
||||
}
|
||||
);
|
||||
$(".pageAccount .profile").on("click", ".pbsWords .showAllButton", () => {
|
||||
show("words");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue