From 599250815cff01e99b25dc01677edcaafcaf9ae1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 30 Jul 2016 13:03:50 +0300 Subject: www: open image when width < 640 --- juick-www/src/main/static/scripts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index fe701208..5ee8ae6b 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -637,8 +637,9 @@ ready(function () { document.querySelectorAll('.ir a').forEach(function(e) { e.addEventListener('click', function (e) { var fname = e.target.parentNode.getAttribute('data-fname'); - showPhotoDialog(fname); - e.preventDefault(); + if (!showPhotoDialog(fname)) { + e.preventDefault(); + } }); }); document.querySelectorAll('.social a').forEach(function(e) { -- cgit v1.2.3