diff options
author | Vitaly Takmazov | 2017-05-10 09:29:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-05-10 14:30:36 +0300 |
commit | 2b56f703be2a562b0c96b1eba350706dbbaef04d (patch) | |
tree | db7418180b5bfdd1d88790b2516016634113e0d0 /juick-www/src | |
parent | b71d0359d4d665188624579907209bdaea2a02d8 (diff) |
juick-www: fix images
Diffstat (limited to 'juick-www/src')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 2 | ||||
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/index.html | 3 |
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 %} |