only rendered items have video/timeline widget
This commit is contained in:
parent
cfd7d6a4d9
commit
7e36dfb7eb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
// handle links in annotations
|
||||||
var widget = pandora.user.ui.itemView == 'video' ? 'player' : 'editor';
|
var widget = pandora.user.ui.itemView == 'video' ? 'player' : 'editor';
|
||||||
pandora.$ui[widget].bindEvent('pandora_videopoints.' + pandora.user.ui.item.toLowerCase(), function(data) {
|
pandora.$ui[widget].bindEvent('pandora_videopoints.' + pandora.user.ui.item.toLowerCase(), function(data) {
|
||||||
|
|
Loading…
Reference in a new issue