fix #1802 (make info poster link to info view)
This commit is contained in:
parent
e2fd066766
commit
95a1995ad9
1 changed files with 12 additions and 2 deletions
|
@ -350,9 +350,19 @@ pandora.ui.listInfo = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.ui.posterInfo = function(data) {
|
pandora.ui.posterInfo = function(data) {
|
||||||
var $poster = $('<img>')
|
var $poster = Ox.Element({
|
||||||
|
element: '<img>',
|
||||||
|
tooltip: function() {
|
||||||
|
return Ox._('Open in Info View');
|
||||||
|
}
|
||||||
|
})
|
||||||
.attr({src: '/' + data.id + '/poster512.jpg?' + data.modified})
|
.attr({src: '/' + data.id + '/poster512.jpg?' + data.modified})
|
||||||
.css(getPosterCSS()),
|
.css(getPosterCSS())
|
||||||
|
.bindEvent({
|
||||||
|
anyclick: function() {
|
||||||
|
pandora.UI.set({item: data.id, itemView: 'info'});
|
||||||
|
}
|
||||||
|
}),
|
||||||
$text = $('<div>')
|
$text = $('<div>')
|
||||||
.css({
|
.css({
|
||||||
width: pandora.user.ui.sidebarSize - 8 + 'px',
|
width: pandora.user.ui.sidebarSize - 8 + 'px',
|
||||||
|
|
Loading…
Reference in a new issue