From 7e36dfb7eb39d0a62078a5674db12e9f884a292b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 11 Mar 2012 22:08:18 +0100 Subject: [PATCH] only rendered items have video/timeline widget --- static/js/pandora/item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 4dcdb2ea..18168045 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -509,7 +509,8 @@ pandora.ui.item = function() { } - if (['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1) { + if (result.data.rendered + && ['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1) { // handle links in annotations var widget = pandora.user.ui.itemView == 'video' ? 'player' : 'editor'; pandora.$ui[widget].bindEvent('pandora_videopoints.' + pandora.user.ui.item.toLowerCase(), function(data) {