From a20b135d4232e8e99d90385bfd9264ef47f1ff67 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 9 Feb 2013 15:33:14 +0530 Subject: [PATCH] make pad.ma info view icon link to video view --- static/js/pandora/infoView.padma.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 3ae0fd43..c43a95f6 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -44,6 +44,10 @@ pandora.ui.infoView = function(data) { $icon = Ox.Element({ element: '', + tooltip: 'Open in ' + Ox.getObjectById( + pandora.site.itemViews, + ui.videoView + ).title }) .attr({ src: '/' + data.id + '/' + ( @@ -58,6 +62,11 @@ pandora.ui.infoView = function(data) { height: iconHeight + 'px', borderRadius: borderRadius + 'px' }) + .bindEvent({ + anyclick: function() { + pandora.UI.set({itemView: ui.videoView}); + } + }) .appendTo($left), $reflection = $('
')