make pad.ma info view icon link to video view

This commit is contained in:
rolux 2013-02-09 15:33:14 +05:30
parent fdad3d6f26
commit a20b135d42

View file

@ -44,6 +44,10 @@ pandora.ui.infoView = function(data) {
$icon = Ox.Element({ $icon = Ox.Element({
element: '<img>', element: '<img>',
tooltip: 'Open in ' + Ox.getObjectById(
pandora.site.itemViews,
ui.videoView
).title
}) })
.attr({ .attr({
src: '/' + data.id + '/' + ( src: '/' + data.id + '/' + (
@ -58,6 +62,11 @@ pandora.ui.infoView = function(data) {
height: iconHeight + 'px', height: iconHeight + 'px',
borderRadius: borderRadius + 'px' borderRadius: borderRadius + 'px'
}) })
.bindEvent({
anyclick: function() {
pandora.UI.set({itemView: ui.videoView});
}
})
.appendTo($left), .appendTo($left),
$reflection = $('<div>') $reflection = $('<div>')