From f00cc986649259d198530705ff2e072306eae96e Mon Sep 17 00:00:00 2001 From: KillyMXI Date: Sat, 19 Aug 2017 18:55:28 +0300 Subject: www: make lightbox working in thread --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main/static/scripts.js') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index c9be85dd..39d57118 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -717,7 +717,7 @@ ready(function () { e.preventDefault(); }); }); - document.querySelectorAll('.ir a[data-fname]').forEach(function (el) { + document.querySelectorAll('.ir a[data-fname], .msg-media a[data-fname]').forEach(function (el) { el.addEventListener('click', function (e) { let fname = e.target.closest('[data-fname]').getAttribute('data-fname'); if (!showPhotoDialog(fname)) { -- cgit v1.2.3