diff options
author | Vitaly Takmazov | 2016-07-30 13:03:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-30 13:03:50 +0300 |
commit | 599250815cff01e99b25dc01677edcaafcaf9ae1 (patch) | |
tree | b4b7ed271c36171458517e78137d4cfc6309eb5a /juick-www/src | |
parent | f46e220373cc87959d6cee903927ffea289d0575 (diff) |
www: open image when width < 640
Diffstat (limited to 'juick-www/src')
-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) { |