updated event handlers

This commit is contained in:
Miodec 2022-10-16 18:43:58 +02:00
parent dcd4bc876c
commit f43dc97ffb
2 changed files with 11 additions and 15 deletions

View file

@ -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)

View file

@ -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");
});