wrap image urls in pandora.getMediaURL to add option to load image from another domain

This commit is contained in:
j 2014-02-02 11:30:25 +00:00 committed by rolux
commit 522af49a73
22 changed files with 118 additions and 77 deletions

View file

@ -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;
};
};