aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-28 10:38:52 +0300
committerGravatar Vitaly Takmazov2016-07-28 10:38:52 +0300
commit9e99dec9905b6208019dd02cc5800b2bb2aee2bf (patch)
tree3c211cd28879c6edc5edd83335b014715fe78893 /juick-www/src
parent99fffda5fa9d14282f6cae4e544fe347d9228009 (diff)
www: fix message menu
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js8
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 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();
});
});