use simple icon in Pad.ma item info view (fixes #890)

This commit is contained in:
rolux 2013-02-09 14:44:54 +05:30
parent 8e4b3cff55
commit 3bc4973017

View file

@ -41,56 +41,6 @@ pandora.ui.infoView = function(data) {
$left = Ox.Element()
.appendTo($info),
$preview = Ox.VideoPreview({
duration: data.duration,
getFrame: function(position) {
var resolutions = pandora.site.video.resolutions.filter(
function(resolution, i) {
return resolution >= iconHeight;
}),
resolution = resolutions.length
? Ox.min(resolutions)
: Ox.max(pandora.site.video.resolutions);
return '/' + data.id + '/' + resolution + 'p'
+ (Ox.isUndefined(position) ? '' : position) + '.jpg';
},
frameRatio: data.videoRatio,
height: iconHeight,
width: iconWidth
})
.css({
position: 'absolute',
left: margin + iconLeft + 'px',
top: margin + 'px',
width: iconWidth + 'px',
height: iconHeight + 'px',
borderRadius: borderRadius + 'px',
background: 'rgb(0,0,0)'
})
.bind({
mouseleave: function() {
$icon.show();
}
})
.bindEvent({
click: function(click) {
pandora.UI.set(
'videoPoints.' + data.id,
{'in': 0, out: 0, position: click.position}
);
if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1) {
pandora.$ui[ui.itemView].options({
position: click.position
});
} else {
pandora.UI.set({
item: data.id,
itemView: ui.videoView
});
}
}
})
.appendTo($left),
$icon = Ox.Element({
element: '<img>',
})
@ -105,15 +55,10 @@ pandora.ui.infoView = function(data) {
top: margin + 'px',
width: iconWidth + 'px',
height: iconHeight + 'px',
borderRadius: borderRadius + 'px',
cursor: 'pointer'
})
.bind({
mouseenter: function() {
$icon.hide();
}
borderRadius: borderRadius + 'px'
})
.appendTo($left),
$reflection = $('<div>')
.addClass('OxReflection')
.css({