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,8 +95,10 @@ pandora.ui.info = function() {
? (ui.videoPoints[id] ? ui.videoPoints[id].position : 0)
: result.data.posterFrame,
videoTooltip: function() {
return (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1)
? 'Go to Position' : 'Open in ' + Ox.getObjectById(
return (
pandora.user.ui.item
&& ['timeline', 'player', 'editor'].indexOf(pandora.user.ui.itemView) > -1
) ? 'Go to Position' : 'Open in ' + Ox.getObjectById(
pandora.site.itemViews,
ui.videoView
).title + ' View';