Skip to content

Commit

Permalink
themes: exposure: gallery-index: fix missing jquery when night_mode e…
Browse files Browse the repository at this point in the history
…nabled

Jquery is needed in the javascript script when night_mode is enabled. It's
enabled for other templates except this one.

Let's add jquery script when night_mode is enabled.

This fixes #126.

Signed-off-by: Quentin Schulz <[email protected]>
  • Loading branch information
QSchulz authored and Psycojoker committed Oct 21, 2020
1 parent 622c7f4 commit 09847aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prosopopee/themes/exposure/templates/gallery-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% if settings.custom_css %}
<link type="text/css" rel="stylesheet" href="../static/css/custom.css" media="screen,projection"/>
{% endif %}
{% if gallery.panorama_enabled or gallery.audio_enabled %}
{% if gallery.panorama_enabled or gallery.audio_enabled or settings.settings.night_mode %}
<script type="text/javascript" src="../static/js/jquery.min.js" charset="utf-8"></script>
{% endif %}
<link type="text/css" rel="stylesheet" href="../static/css/baguetteBox.min.css" media="screen,projection"/>
Expand Down

0 comments on commit 09847aa

Please sign in to comment.