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 Psycojoker#126.

Signed-off-by: Quentin Schulz <[email protected]>
  • Loading branch information
QSchulz committed Oct 18, 2020
1 parent e4f8d14 commit c377414
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 c377414

Please sign in to comment.