From 0d1939e4056e2b6f3a690eee872452fc477dea97 Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Mon, 4 Jan 2021 13:40:05 +0100 Subject: [PATCH] Initialize pdf preview on galery swtich [SCI-5342] (#3044) --- app/assets/javascripts/sitewide/file_preview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/sitewide/file_preview.js b/app/assets/javascripts/sitewide/file_preview.js index dee82ba68..8cac1cf0f 100644 --- a/app/assets/javascripts/sitewide/file_preview.js +++ b/app/assets/javascripts/sitewide/file_preview.js @@ -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(); }); }); }