From 8f9372bc071cb731f39aacb22af96c78fb50cc1a Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Mon, 21 Sep 2015 18:32:08 +0100 Subject: [PATCH] reload poster if poster keys are changed --- static/js/infoView.mdr.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/infoView.mdr.js b/static/js/infoView.mdr.js index c75bee0..f7fd42c 100644 --- a/static/js/infoView.mdr.js +++ b/static/js/infoView.mdr.js @@ -23,6 +23,7 @@ pandora.ui.infoView = function(data) { 'writer', 'producer', 'featuring' ], listKeys = nameKeys.concat(['language', 'themes', 'groups']), + posterKeys = nameKeys.concat(['title', 'date', 'collection']), statisticsWidth = 128, $bar = Ox.Bar({size: 16}) @@ -525,10 +526,7 @@ pandora.ui.infoView = function(data) { } pandora.updateItemContext(); pandora.$ui.browser.value(result.data.id, key, result.data[key]); - if ( - Ox.contains([].conact(pandora.site.itemTitleKeys, nameKeys), key) - && ui.icons == 'posters' - ) { + if (Ox.contains(posterKeys, key) && ui.icons == 'posters') { src = pandora.getMediaURL('/' + data.id + '/poster512.jpg?' + Ox.uid()); $icon.attr({src: src}); $reflectionIcon.attr({src: src});