1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

mod_muc_log: Hide join/leave lines, add method to show them

This commit is contained in:
Badlop 2024-03-05 11:49:18 +01:00
parent c0055b7a7f
commit 281515cd9f
3 changed files with 46 additions and 1 deletions

View file

@ -6,3 +6,14 @@ function sh(e) {
document.getElementById(e).style.display='none';
}
}
// Show/Hide join/leave elements
function jlf() {
var es = document.getElementsByClassName('jl');
for (var i = 0; i < es.length; i++) {
if (es[i].style.display === 'block') {
es[i].style.display = 'none';
} else {
es[i].style.display = 'block';
}
}
}