diff options
author | Vitaly Takmazov | 2017-03-24 14:15:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-24 14:37:25 +0300 |
commit | 5ea5b5737138e3ee4eee4c87a970d401276b53b2 (patch) | |
tree | 5dc2ab2179a1faae09f6fc96cbf26a0e6827522f /juick-www/src/main/static | |
parent | 7a0fd451679e994db39008e97cdd79b19a62a4c5 (diff) |
msg-menu in message lists
Diffstat (limited to 'juick-www/src/main/static')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 2fb23130..9cb19fe5 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -616,9 +616,11 @@ ready(function () { document.querySelectorAll('.msg-menu a').forEach(function (el) { el.addEventListener('click', function (e) { - showMessageLinksDialog( - e.target.closest('section').getAttribute('data-mid'), - parseInt(e.target.closest('li').id)); // rid + var reply = e.target.closest('li'); + var rid = reply ? parseInt(reply.id) : 0; + var message = e.target.closest('section'); + var mid = message.getAttribute('data-mid') || e.target.closest('article').getAttribute('data-mid'); + showMessageLinksDialog(mid, rid); e.preventDefault(); }); }); |