diff options
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 5 |
1 files 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) { |