posters should use https is site is https

This commit is contained in:
j 2012-03-09 13:34:35 +01:00
parent e09fd09bdf
commit 8f05ce2e05

View file

@ -682,7 +682,7 @@ pandora.ui.infoView = function(data) {
id: data['id'], id: data['id'],
info: data.width + ' x ' + data.height + ' px', info: data.width + ' x ' + data.height + ' px',
title: ui.icons == 'posters' ? data.source : Ox.formatDuration(data.position), title: ui.icons == 'posters' ? data.source : Ox.formatDuration(data.position),
url: data.url, url: data.url.replace('http://', '//'),
width: ratio >= 1 ? size : size * ratio width: ratio >= 1 ? size : size * ratio
} }
}, },
@ -714,7 +714,7 @@ pandora.ui.infoView = function(data) {
return image.index == index; return image.index == index;
})[0]; })[0];
var imageRatio = selectedImage.width / selectedImage.height, var imageRatio = selectedImage.width / selectedImage.height,
src = selectedImage.url; src = selectedImage.url.replace('http://', '//');
if ($browserImages.length == 0) { if ($browserImages.length == 0) {
$browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]'); $browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]');
} }