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({
|
$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>')
|
||||||
|
|
Loading…
Reference in a new issue