aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-01 22:17:33 +0300
committerGravatar Vitaly Takmazov2016-11-01 22:17:33 +0300
commitb4b9dfff3b074ba8961fd84b1f8193aff4756e37 (patch)
tree9180b7670efa081cac3f3d730123c214e6688f7e /juick-www
parent30d283c422de780615b5b052620421322f2cca59 (diff)
fix compatibility with vim-like navigation plugins
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/static/scripts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index ebeba198..d368cacd 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -657,7 +657,7 @@ ready(function () {
});
document.querySelectorAll('.ir a').forEach(function(e) {
e.addEventListener('click', function (e) {
- var fname = e.target.parentNode.getAttribute('data-fname');
+ var fname = e.target.closest('[data-fname]').getAttribute('data-fname');
if (!showPhotoDialog(fname)) {
e.preventDefault();
}