Add media ratio to improve page rendering
This commit is contained in:
1 parent
e640b9e49f
commit
850702c67e
7 files changed
+37
-10
No files matched your search
+8
-1
@@ -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