if sort is random, display year in movies browser

This commit is contained in:
rolux 2012-03-08 18:18:26 +00:00
parent 3833415e1c
commit be6652f1c9

View file

@ -63,7 +63,7 @@ pandora.ui.browser = function() {
? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon' ? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon'
) + '128.jpg', ) + '128.jpg',
format, info, sortKey = sort[0].key; format, info, sortKey = sort[0].key;
if (['title', 'director'].indexOf(sortKey) > -1) { if (['title', 'director', 'random'].indexOf(sortKey) > -1) {
info = data['year']; info = data['year'];
} else { } else {
// fixme: this is duplicated many times // fixme: this is duplicated many times