Fancybox testing

This commit is contained in:
Rick Falkvinge
2018-02-21 15:39:05 +01:00
parent 3343398510
commit baea4b8232
@@ -143,19 +143,21 @@
$('#divDocumentsHidden').html(result.Documents);
$("a.FancyBox_Gallery").fancybox({
'overlayShow': true,
'transitionIn': 'fade',
'transitionOut': 'fade',
'type': 'image',
'opacity': true,
afterShow: function() {
alert('aftershow');
$('.zoomContainer').remove();
$('.fancybox-image').elevateZoom({
zoomType: "lens",
cursor: "crosshair",
zoomWindowFadeIn: 200,
zoomWindowFadeOut: 200,
lensShape: "round",
lensSize: 200
});
},
afterClose: function() {
$('.zoomContainer').remove();
}
});