From 8f05ce2e058e0713320184b78f423fb94b14f7da Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 9 Mar 2012 13:34:35 +0100 Subject: [PATCH] posters should use https is site is https --- static/js/pandora/infoView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index b79c1d9ee..d5fbb910e 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -682,7 +682,7 @@ pandora.ui.infoView = function(data) { id: data['id'], info: data.width + ' x ' + data.height + ' px', title: ui.icons == 'posters' ? data.source : Ox.formatDuration(data.position), - url: data.url, + url: data.url.replace('http://', '//'), width: ratio >= 1 ? size : size * ratio } }, @@ -714,7 +714,7 @@ pandora.ui.infoView = function(data) { return image.index == index; })[0]; var imageRatio = selectedImage.width / selectedImage.height, - src = selectedImage.url; + src = selectedImage.url.replace('http://', '//'); if ($browserImages.length == 0) { $browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]'); }