LinkPreview: link the thumbnails

This commit is contained in:
Brion Vibber 2010-11-16 13:58:22 -08:00
parent 5166e71d24
commit f103a55052

View File

@ -73,11 +73,14 @@ $(function() {
}
}
if (thumb) {
var img = $('<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(img);
$('#' + id).append(link);
}
});
}