fix video preview tooltip function

This commit is contained in:
rolux 2013-02-11 12:08:13 +05:30
parent 0df6dba534
commit bee6a53546

View file

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