diff options
Diffstat (limited to 'juick-www')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 6f5d40fa4..ef1c40d81 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -587,11 +587,11 @@ ready(function () { } } - document.querySelectorAll('.msg-menu a').forEach(function(e) { - e.addEventListener('click', function(e) { + document.querySelectorAll('.msg-menu a').forEach(function(el) { + el.addEventListener('click', function(e) { showMessageLinksDialog( - e.closest('section').getAttribute('data-mid'), - parseInt(e.closest('li').id)); // rid + e.target.closest('section').getAttribute('data-mid'), + parseInt(e.target.closest('li').id)); // rid e.preventDefault(); }); }); |