mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Initialize pdf preview on galery swtich [SCI-5342] (#3044)
This commit is contained in:
parent
b3faa170fb
commit
0d1939e405
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ var FilePreviewModal = (function() {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
$.get($(this).attr('href'), { gallery: $(this).data('gallery-elements') }, function(result) {
|
$.get($(this).attr('href'), { gallery: $(this).data('gallery-elements') }, function(result) {
|
||||||
$('#filePreviewModal .modal-content').html(result.html);
|
$('#filePreviewModal .modal-content').html(result.html);
|
||||||
|
PdfPreview.initCanvas();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue