use video preview tooltip function

This commit is contained in:
rolux 2013-02-11 11:59:14 +05:30
parent 5224d80370
commit 7914a1b558

View file

@ -94,11 +94,13 @@ pandora.ui.info = function() {
position: !ui.item && ui.listView == 'timelines'
? (ui.videoPoints[id] ? ui.videoPoints[id].position : 0)
: result.data.posterFrame,
tooltip: (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1)
tooltip: function() {
return (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1)
? 'Go to Position' : 'Open in ' + Ox.getObjectById(
pandora.site.itemViews,
ui.videoView
).title + ' View',
).title + ' View';
}
width: ui.sidebarSize
})
.bindEvent({