From 94a9a59718a5e9fc553f2e2878d8d34d7cbbd7c5 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 6 Nov 2011 22:34:39 +0000 Subject: [PATCH] keep another js error from throwing --- static/js/pandora/clipList.js | 2 +- static/js/pandora/menu.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 6ac4aaf2..8956f589 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -22,7 +22,7 @@ pandora.ui.clipList = function(videoRatio) { width = fixedRatio > 1 ? size : Math.round(size * fixedRatio); 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'; sortKey = sort[0].key; if (['text', 'position', 'duration'].indexOf(sortKey) > -1) { diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index 467d27ef..3e3e11de 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -410,6 +410,7 @@ pandora.ui.mainMenu = function() { function getListMenu(lists) { 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) { return { id: folder + 'lists',