From 7914a1b558b6a74c663431653344921bc44e597f Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Feb 2013 11:59:14 +0530 Subject: [PATCH] use video preview tooltip function --- static/js/pandora/info.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/info.js b/static/js/pandora/info.js index 8784bce1..cf054bb3 100644 --- a/static/js/pandora/info.js +++ b/static/js/pandora/info.js @@ -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) - ? 'Go to Position' : 'Open in ' + Ox.getObjectById( - pandora.site.itemViews, - ui.videoView - ).title + ' View', + 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'; + } width: ui.sidebarSize }) .bindEvent({