forked from 0x2620/pandora
keep another js error from throwing
This commit is contained in:
parent
c189c9cd20
commit
94a9a59718
2 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ pandora.ui.clipList = function(videoRatio) {
|
||||||
width = fixedRatio > 1 ? size : Math.round(size * fixedRatio);
|
width = fixedRatio > 1 ? size : Math.round(size * fixedRatio);
|
||||||
height = fixedRatio > 1 ? Math.round(size / fixedRatio) : size;
|
height = fixedRatio > 1 ? Math.round(size / fixedRatio) : size;
|
||||||
}
|
}
|
||||||
title = data.subtitles[0].value; //fixme: could be other layer
|
title = data.subtitles ? data.subtitles[0].value : ''; //fixme: could be other layer
|
||||||
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'].indexOf(sortKey) > -1) {
|
||||||
|
|
|
@ -410,6 +410,7 @@ pandora.ui.mainMenu = function() {
|
||||||
|
|
||||||
function getListMenu(lists) {
|
function getListMenu(lists) {
|
||||||
return { id: 'listMenu', title: 'List', items: Ox.merge(
|
return { id: 'listMenu', title: 'List', items: Ox.merge(
|
||||||
|
{ id: 'allitems', title: 'All ' + pandora.site.itemName.plural, checked: !ui.item && !ui._list, keyboard: 'shift control w' },
|
||||||
['personal', 'favorite', 'featured'].map(function(folder) {
|
['personal', 'favorite', 'featured'].map(function(folder) {
|
||||||
return {
|
return {
|
||||||
id: folder + 'lists',
|
id: folder + 'lists',
|
||||||
|
|
Loading…
Reference in a new issue