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