From b4b9dfff3b074ba8961fd84b1f8193aff4756e37 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Nov 2016 22:17:33 +0300 Subject: fix compatibility with vim-like navigation plugins --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main/static') 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(); } -- cgit v1.2.3