aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-30 13:03:50 +0300
committerGravatar Vitaly Takmazov2016-07-30 13:03:50 +0300
commit599250815cff01e99b25dc01677edcaafcaf9ae1 (patch)
treeb4b7ed271c36171458517e78137d4cfc6309eb5a /juick-www/src/main/static
parentf46e220373cc87959d6cee903927ffea289d0575 (diff)
www: open image when width < 640
Diffstat (limited to 'juick-www/src/main/static')
-rw-r--r--juick-www/src/main/static/scripts.js5
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) {