summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/sheet.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r--ishtar_common/templates/ishtar/sheet.html11
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'));