fix video icon list openpreview

This commit is contained in:
rolux 2011-08-19 17:34:36 +00:00
parent b7314110a6
commit 524052790c

View file

@ -214,7 +214,11 @@ pandora.ui.list = function() { // fixme: remove view argument
}, },
openpreview: function(data) { openpreview: function(data) {
var $video = $('.OxItem.OxSelected > .OxIcon > .OxVideoPlayer'); var $video = $('.OxItem.OxSelected > .OxIcon > .OxVideoPlayer');
$video && $video.trigger('mousedown'); if ($video) {
// trigger singleclick
$video.trigger('mousedown');
Ox.UI.$window.trigger('mouseup');
}
$video && Ox.print('OPENPREVIEW!!!@!') $video && Ox.print('OPENPREVIEW!!!@!')
that.closePreview(); that.closePreview();
}, },
@ -245,11 +249,6 @@ pandora.ui.list = function() { // fixme: remove view argument
}) })
}) })
.addClass('OxTarget') .addClass('OxTarget')
.bind({
mousedown: function() {
Ox.print('MOUSEDOWN...')
}
})
.bindEvent({ .bindEvent({
// doubleclick opens item // doubleclick opens item
singleclick: function() { singleclick: function() {