mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Clean up Pop-Up JS
Fix missing Width and Height data stopping images from loading
This commit is contained in:
parent
b0a9271265
commit
feadaba8a1
5 changed files with 146 additions and 180 deletions
|
@ -18,8 +18,10 @@
|
|||
src="/api/uploads/{{ image.file_name }}?w=1000&h=1000"
|
||||
onload="imgFade(this)" style="opacity:0;"
|
||||
onerror="this.src='/static/images/error.png'"
|
||||
width="{{ image.image_exif.File.Width.raw }}"
|
||||
height="{{ image.image_exif.File.Height.raw }}"
|
||||
{% if "File" in image.image_exif %}
|
||||
width="{{ image.image_exif.File.Width.raw }}"
|
||||
height="{{ image.image_exif.File.Height.raw }}"
|
||||
{% endif %}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -36,13 +36,6 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!--
|
||||
<footer>
|
||||
<a>V{{ config['APP_VERSION'] }}</a>
|
||||
<p>Rights reserved to {{ config['ADMIN']['name'] }}</p>
|
||||
</footer>
|
||||
-->
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue