create image-preview.js file

This commit is contained in:
Oli 2019-05-24 10:23:37 +02:00 committed by GitHub
parent d25fd32627
commit b7b54b1717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,6 @@
$('a[rel=image-preview-popover]').popover({
html: true,
trigger: 'hover',
placement: 'right',
content: function(){return '<img src="'+$(this).attr('href') + '" />';}
});