forked from GNUsocial/gnu-social
LinkPreview: link the thumbnails
This commit is contained in:
parent
5166e71d24
commit
f103a55052
@ -73,11 +73,14 @@ $(function() {
|
||||
}
|
||||
}
|
||||
if (thumb) {
|
||||
var img = $('<img/>')
|
||||
.attr('src', thumb)
|
||||
.attr('width', width)
|
||||
.attr('title', data.title || data.url || url);
|
||||
$('#' + id).append(img);
|
||||
var link = $('<a><img/></a>');
|
||||
link.attr('href', url)
|
||||
.attr('target', '_blank')
|
||||
.find('img')
|
||||
.attr('src', thumb)
|
||||
.attr('width', width)
|
||||
.attr('title', data.title || data.url || url);
|
||||
$('#' + id).append(link);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user