update info embed

This commit is contained in:
rolux 2014-01-22 17:30:49 +00:00
parent ff3d2f6df4
commit f39a90cfe3

View file

@ -23,6 +23,11 @@ pandora.ui.embedInfo = function() {
top: margin + 'px', top: margin + 'px',
cursor: 'pointer' cursor: 'pointer'
}) })
.on({
click: function() {
window.open('/' + item + '/info', '_blank');
}
})
.appendTo(that); .appendTo(that);
$reflection = Ox.$('<div>') $reflection = Ox.$('<div>')
@ -60,7 +65,12 @@ pandora.ui.embedInfo = function() {
fontSize: '13px', fontSize: '13px',
textAlign: 'center' textAlign: 'center'
}) })
.html(data.title + (data.year ? ' (' + data.year + ')' : '')) .html(data.title + (
data.year
? ' (<a href="/year=' + data.year
+ '" target="_blank">' + data.year + '</a>)'
: ''
))
.appendTo($text); .appendTo($text);
if (data.director) { if (data.director) {