update embed grid

This commit is contained in:
rolux 2014-01-23 14:49:06 +00:00
parent 470a92686e
commit d0c9848e89

View file

@ -57,12 +57,33 @@ pandora.ui.embedGrid = function() {
}) })
.addClass('OxMedia') .addClass('OxMedia')
.bindEvent({ .bindEvent({
open: function() { init: function(data) {
window.open('/' + item + '', '_blank'); $status.html(
(data.items ? Ox.formatNumber(data.items) : Ox._('No'))
+ ' ' + pandora.site.itemName[
data.items == 1 ? 'singular' : 'plural'
]
);
},
open: function(data) {
window.open('/' + data.ids[0] + '', '_blank');
} }
}), }),
$statusbar = Ox.Bar({size: 16}), $statusbar = Ox.Bar({size: 16})
.css({
textAlign: 'center'
}),
$status = Ox.Element()
.css({
margin: '2px 4px',
fontSize: '9px',
overflow: 'hidden',
textOverflow: 'ellipsis'
})
.html(Ox._('Loading...'))
.appendTo($statusbar),
that = Ox.SplitPanel({ that = Ox.SplitPanel({
elements: [ elements: [