From 30da78e1805e1a499b7c23fe0be23f35eee9f7a8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 20 Aug 2011 11:07:45 +0200 Subject: [PATCH] posterRatio --- static/js/pandora/ui/infoView.js | 4 ++-- static/js/pandora/ui/list.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/ui/infoView.js b/static/js/pandora/ui/infoView.js index 27a1fad..91fe025 100644 --- a/static/js/pandora/ui/infoView.js +++ b/static/js/pandora/ui/infoView.js @@ -501,7 +501,7 @@ pandora.ui.infoView = function(data) { $reflectionIcon.attr({src: src}); iconSize = iconSize == 256 ? 512 : 256; iconRatio = pandora.user.ui.icons == 'posters' - ? data.poster.width / data.poster.height : 1; + ? data.posterRatio : 1; toggleIconSize(); pandora.user.level == 'admin' && $list.replaceWith($list = renderList()); }; @@ -514,4 +514,4 @@ pandora.ui.infoView = function(data) { return that; -} \ No newline at end of file +} diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index f7a58f4..41b9f88 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -461,7 +461,7 @@ pandora.ui.list = function() { // fixme: remove view argument }, function(result) { var item = result.data.items[0], title = item.title + ' (' + item.director + ')' - ratio = item.poster.width / item.poster.height, + ratio = item.posterRatio, windowWidth = window.innerWidth * 0.8, windowHeight = window.innerHeight * 0.8, windowRatio = windowWidth / windowHeight,