forked from 0x2620/pandora
when sorting icon list by random, display default info below icon text
This commit is contained in:
parent
30d6c35682
commit
3833415e1c
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ pandora.ui.clipList = function(videoRatio) {
|
||||||
}).join('; ') : '';
|
}).join('; ') : '';
|
||||||
url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg';
|
url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg';
|
||||||
sortKey = sort[0].key;
|
sortKey = sort[0].key;
|
||||||
if (['text', 'position', 'duration'].indexOf(sortKey) > -1) {
|
if (['text', 'position', 'duration', 'random'].indexOf(sortKey) > -1) {
|
||||||
info = Ox.formatDuration(data['in']) + ' - '
|
info = Ox.formatDuration(data['in']) + ' - '
|
||||||
+ Ox.formatDuration(data.out);
|
+ Ox.formatDuration(data.out);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -128,7 +128,7 @@ pandora.ui.list = function() {
|
||||||
? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon'
|
? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon'
|
||||||
) + size + '.jpg',
|
) + size + '.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 {
|
||||||
format = pandora.getSortKeyData(sortKey).format;
|
format = pandora.getSortKeyData(sortKey).format;
|
||||||
|
|
Loading…
Reference in a new issue