forked from rDrama/rDrama
register_new_elements consistency
parent
2a6ef1b1bc
commit
8b859cc610
|
@ -115,9 +115,7 @@ if (reload_page) {
|
||||||
function register_new_elements(e) {
|
function register_new_elements(e) {
|
||||||
const showmores = document.getElementsByClassName('showmore')
|
const showmores = document.getElementsByClassName('showmore')
|
||||||
for (const element of showmores) {
|
for (const element of showmores) {
|
||||||
element.onclick = () => {
|
element.onclick = () => {showmore(element)};
|
||||||
showmore(element)
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const onclick = e.querySelectorAll('[data-onclick]');
|
const onclick = e.querySelectorAll('[data-onclick]');
|
||||||
|
@ -142,9 +140,8 @@ function register_new_elements(e) {
|
||||||
|
|
||||||
const popover_triggers = document.getElementsByClassName('user-name');
|
const popover_triggers = document.getElementsByClassName('user-name');
|
||||||
for (const element of popover_triggers) {
|
for (const element of popover_triggers) {
|
||||||
element.onclick = (e) => {
|
element.onclick = (e) => {popclick(e)};
|
||||||
popclick(e);
|
}
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue