reload poster if poster keys are changed

This commit is contained in:
Jan Gerber 2015-09-21 18:32:08 +01:00
parent baa3b63712
commit 8f9372bc07

View file

@ -23,6 +23,7 @@ pandora.ui.infoView = function(data) {
'writer', 'producer', 'featuring' 'writer', 'producer', 'featuring'
], ],
listKeys = nameKeys.concat(['language', 'themes', 'groups']), listKeys = nameKeys.concat(['language', 'themes', 'groups']),
posterKeys = nameKeys.concat(['title', 'date', 'collection']),
statisticsWidth = 128, statisticsWidth = 128,
$bar = Ox.Bar({size: 16}) $bar = Ox.Bar({size: 16})
@ -525,10 +526,7 @@ pandora.ui.infoView = function(data) {
} }
pandora.updateItemContext(); pandora.updateItemContext();
pandora.$ui.browser.value(result.data.id, key, result.data[key]); pandora.$ui.browser.value(result.data.id, key, result.data[key]);
if ( if (Ox.contains(posterKeys, key) && ui.icons == 'posters') {
Ox.contains([].conact(pandora.site.itemTitleKeys, nameKeys), key)
&& ui.icons == 'posters'
) {
src = pandora.getMediaURL('/' + data.id + '/poster512.jpg?' + Ox.uid()); src = pandora.getMediaURL('/' + data.id + '/poster512.jpg?' + Ox.uid());
$icon.attr({src: src}); $icon.attr({src: src});
$reflectionIcon.attr({src: src}); $reflectionIcon.attr({src: src});