From 069cfc155d8e36801eb124c575fd1db98b0fb99d Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Jul 2013 14:12:05 +0000 Subject: [PATCH] fix preview in 'always show site poster' mode --- static/js/list.js | 6 +++--- static/js/utils.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/list.js b/static/js/list.js index 82e92f4b5..3f666ff32 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -465,7 +465,7 @@ pandora.ui.list = function() { ) + ( item.year ? ' ' + item.year : '' ), - ratio = ui.showSitePosters ? pandora.site.posters.ratio : item.posterRatio, + ratio = pandora.user.ui.showSitePosters ? pandora.site.posters.ratio : item.posterRatio, windowWidth = window.innerWidth * 0.8, windowHeight = window.innerHeight * 0.8, windowRatio = windowWidth / windowHeight, @@ -473,14 +473,14 @@ pandora.ui.list = function() { height = Math.round(ratio < windowRatio ? windowHeight : windowWidth / ratio); pandora.$ui.previewImage = $('') .attr({src: '/' + item.id + '/' + ( - ui.showSitePosters ? 'siteposter' : 'poster' + pandora.user.ui.showSitePosters ? 'siteposter' : 'poster' ) + '128.jpg'}) .css({width: width + 'px', height: height + 'px'}) $('').load(function() { pandora.$ui.previewImage.attr({src: $(this).attr('src')}); }) .attr({src: '/' + item.id + '/' + ( - ui.showSitePosters ? 'siteposter' : 'poster' + pandora.user.ui.showSitePosters ? 'siteposter' : 'poster' ) + '1024.jpg'}); if (!preview) { if (!pandora.$ui.previewDialog) { diff --git a/static/js/utils.js b/static/js/utils.js index ec77ab0dc..8db16eb4b 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1806,7 +1806,6 @@ pandora.wait = function(taskId, callback, timeout) { return task; }; - (function() { // Note: getFindState has to run after getListState and getFilterState