Add media ratio to improve page rendering
This commit is contained in:
@@ -998,7 +998,14 @@ function getMediaLink(asData, sType) {
|
||||
'data-title': $Title.html(),
|
||||
'data-orientation': asData.rotate
|
||||
})
|
||||
.append($('<img>', {'src': asData.thumb_path, title: oSpot.lang((asData.subtype == 'video')?'click_watch':'click_zoom')}))
|
||||
.append($('<img>')
|
||||
.attr({
|
||||
'src': asData.thumb_path,
|
||||
'width': asData.width, //set image ratio so that the required space can be reserved
|
||||
'height': asData.height,
|
||||
'title': oSpot.lang((asData.subtype == 'video')?'click_watch':'click_zoom')
|
||||
})
|
||||
)
|
||||
.append($('<span>', {'class': 'drill-icon'}).addIcon('fa-drill-'+asData.subtype));
|
||||
|
||||
return $Link;
|
||||
|
||||
Reference in New Issue
Block a user