scinote-web/app/assets/javascripts/shared/file_preview.js

8 lines
219 B
JavaScript
Raw Normal View History

/* global ActiveStoragePreviews */
(function() {
$('.asset-image')
.on('load', (event) => ActiveStoragePreviews.showPreview(event))
.on('error', (event) => ActiveStoragePreviews.reCheckPreview(event));
}());