wrap image urls in pandora.getMediaURL to add option to load image from another domain
This commit is contained in:
parent
7de2644eea
commit
522af49a73
22 changed files with 118 additions and 77 deletions
|
|
@ -17,7 +17,7 @@ pandora.ui.embedInfo = function() {
|
|||
data = result.data;
|
||||
|
||||
$icon = Ox.$('<img>')
|
||||
.attr({src: '/' + item + '/poster512.jpg'})
|
||||
.attr({src: pandora.getMediaURL('/' + item + '/poster512.jpg')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
top: margin + 'px',
|
||||
|
|
@ -39,7 +39,7 @@ pandora.ui.embedInfo = function() {
|
|||
.appendTo(that);
|
||||
|
||||
$reflectionIcon = Ox.$('<img>')
|
||||
.attr({src: '/' + item + '/poster512.jpg'})
|
||||
.attr({src: pandora.getMediaURL('/' + item + '/poster512.jpg')})
|
||||
.css({
|
||||
position: 'absolute'
|
||||
})
|
||||
|
|
@ -136,4 +136,4 @@ pandora.ui.embedInfo = function() {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue