only rendered items have video/timeline widget

This commit is contained in:
j 2012-03-11 22:08:18 +01:00
parent cfd7d6a4d9
commit 7e36dfb7eb

View file

@ -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) {