From 9e99dec9905b6208019dd02cc5800b2bb2aee2bf Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jul 2016 10:38:52 +0300 Subject: www: fix message menu --- juick-www/src/main/static/scripts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'juick-www') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 6f5d40fa..ef1c40d8 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(); }); }); -- cgit v1.2.3