make image width max out at 100%

This commit is contained in:
Maxwell Salzberg 2011-03-21 10:10:03 -07:00
parent a2715ca963
commit 32efbeb903

View file

@ -126,7 +126,7 @@ var Stream = {
$(".stream a[target='_blank']").each(function(){
var link = $(this);
if(link.attr('href').match(/\.gif$|\.jpg$|\.png$|\.jpeg$/)) {
link.parent().append("<img src='" + this.href + "'</img>");
link.parent().append("<img width='100%' src='" + this.href + "' />");
link.remove();
}
});