Initialize pdf preview on galery swtich [SCI-5342] (#3044)

This commit is contained in:
aignatov-bio 2021-01-04 13:40:05 +01:00 committed by GitHub
parent b3faa170fb
commit 0d1939e405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ var FilePreviewModal = (function() {
e.stopPropagation();
$.get($(this).attr('href'), { gallery: $(this).data('gallery-elements') }, function(result) {
$('#filePreviewModal .modal-content').html(result.html);
PdfPreview.initCanvas();
});
});
}