diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-26 18:43:30 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:44:18 +0200 |
commit | 1afa7afd69c63050b7c74e22da1e46f1457f1b6e (patch) | |
tree | a7befacd3a6cecfa6a4e5993f0c0db7b584b1562 /ishtar_common/templates/ishtar/sheet.html | |
parent | ef1ea373049bb116a91fa41148e861c1f1ee8cf0 (diff) | |
download | Ishtar-1afa7afd69c63050b7c74e22da1e46f1457f1b6e.tar.bz2 Ishtar-1afa7afd69c63050b7c74e22da1e46f1457f1b6e.zip |
Sheet: display ishtar images and meta data on a sheet (refs #4076)
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index e12429443..54a2f767d 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -81,8 +81,15 @@ '', function(){hide_window("{{window_id}}");}, true); }); - {% if item.image %} - lightGallery(document.getElementById('lightgallery-{{window_id}}')); + {% if item.images.count %} + var lg = document.getElementById('lightgallery-{{window_id}}'); + lg.addEventListener('onAfterAppendSubHtml', function(e){ + $(".lg-sub-html").show(); + $(".lg-sub-html .close").click(function(){ + $(".lg-sub-html").hide(); + }); + }, false); + lightGallery(lg); {% endif%} {% if item.relation_image %} lightGallery(document.getElementById('lightgallery-{{window_id}}-relation-image')); |