From b30aff21632187d3d0cef4899a97c2fcd8e2e24c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 19 May 2012 15:46:52 +0200 Subject: [PATCH] no timeline if items are not rendered --- static/js/pandora/list.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 3df936bd..f6ad54b4 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -287,7 +287,7 @@ pandora.ui.list = function() { url: url, width: Math.round(ratio >= 1 ? size : size * ratio) }, - info: { + info: data.rendered ? { css: {marginTop: '2px'}, element: Ox.BlockVideoTimeline, events: { @@ -321,6 +321,11 @@ pandora.ui.list = function() { }) : [], type: pandora.user.ui.videoTimeline } + } : { + css: {marginTop: '2px'}, + element: Ox.Element, + id: data.id, + options: {} } }; }, @@ -335,7 +340,7 @@ pandora.ui.list = function() { keys: [] }} : {})), callback); }, - keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'title', 'year'], + keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'rendered', 'title', 'year'], selected: pandora.user.ui.listSelection, size: 192, sort: pandora.user.ui.listSort,