From 3833415e1cb6e5c17611205596fffb010e242879 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 8 Mar 2012 13:27:12 +0000 Subject: [PATCH] when sorting icon list by random, display default info below icon text --- static/js/pandora/clipList.js | 2 +- static/js/pandora/list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index fc415bd2..1c652a18 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -37,7 +37,7 @@ pandora.ui.clipList = function(videoRatio) { }).join('; ') : ''; url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg'; sortKey = sort[0].key; - if (['text', 'position', 'duration'].indexOf(sortKey) > -1) { + if (['text', 'position', 'duration', 'random'].indexOf(sortKey) > -1) { info = Ox.formatDuration(data['in']) + ' - ' + Ox.formatDuration(data.out); } else { diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 407a2ba1..4e472047 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -128,7 +128,7 @@ pandora.ui.list = function() { ? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon' ) + size + '.jpg', format, info, sortKey = sort[0].key; - if (['title', 'director'].indexOf(sortKey) > -1) { + if (['title', 'director', 'random'].indexOf(sortKey) > -1) { info = data['year']; } else { format = pandora.getSortKeyData(sortKey).format;