aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-05-10 09:29:10 +0300
committerGravatar Vitaly Takmazov2017-05-10 14:30:36 +0300
commit2b56f703be2a562b0c96b1eba350706dbbaef04d (patch)
treedb7418180b5bfdd1d88790b2516016634113e0d0 /juick-www
parentb71d0359d4d665188624579907209bdaea2a02d8 (diff)
juick-www: fix images
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/static/scripts.js2
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/index.html3
2 files changed, 2 insertions, 3 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 9cb19fe5..1027170a 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -424,7 +424,7 @@ function showPhotoDialog(fname) {
if (width < 640) {
return true;
} else if (width < 1280) {
- openDialog('<a href="//i.juick.com/photos-1024/' + fname + '"><img src="//i.juick.com/photos-512/' + fname + '"/></a>');
+ openDialog('<a href="//i.juick.com/p/' + fname + '"><img src="//i.juick.com/photos-512/' + fname + '"/></a>');
document.querySelector('#dialogw img').style.maxHeight = height + 'px';
return false;
} else {
diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html
index 6b9eb78f..eebba613 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/index.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/index.html
@@ -27,8 +27,7 @@
</header>
{% if msg.AttachmentType is not empty %}
- <p class="ir"><a href="//i.juick.com/photos-512/{{ msg.getMid() }}.{{ msg.AttachmentType }}"
- onclick="return showPhotoDialog('{{ msg.getMid() }}.{{ msg.AttachmentType }}')">
+ <p class="ir"><a href="//i.juick.com/p/{{ msg.getMid() }}.{{ msg.AttachmentType }}" data-fname="{{ msg.getMid() }}.{{ msg.AttachmentType }}">
<img src="//i.juick.com/photos-512/{{ msg.getMid() }}.{{ msg.AttachmentType }}" alt=""/></a>
</p>
{% endif %}