forked from 0x2620/pandora
make pad.ma info view icon link to video view
This commit is contained in:
parent
fdad3d6f26
commit
a20b135d42
1 changed files with 9 additions and 0 deletions
|
@ -44,6 +44,10 @@ pandora.ui.infoView = function(data) {
|
|||
|
||||
$icon = Ox.Element({
|
||||
element: '<img>',
|
||||
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 = $('<div>')
|
||||
|
|
Loading…
Reference in a new issue