make all entries register_new_elements consistent

master
Aevann 2023-01-28 11:56:32 +02:00
parent 3d7a549139
commit 5995c6094a
1 changed files with 4 additions and 2 deletions

View File

@ -113,7 +113,8 @@ if (reload_page) {
}
function register_new_elements(e) {
for (const element of document.getElementsByClassName('showmore')) {
const showmores = document.getElementsByClassName('showmore')
for (const element of showmores) {
element.onclick = () => {
showmore(element)
};
@ -139,7 +140,8 @@ function register_new_elements(e) {
element.onchange = () => {execute(element, 'onchange')};
}
for (const element of document.getElementsByClassName('user-name')) {
const popover_triggers = document.getElementsByClassName('user-name');
for (const element of popover_triggers) {
element.onclick = (e) => {
popclick(e);
};