From 524052790c1c7bee4511f3eba9f246f7d29c73b3 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 19 Aug 2011 17:34:36 +0000 Subject: [PATCH] fix video icon list openpreview --- static/js/pandora/ui/list.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index ee2a03f9..931761f1 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -214,7 +214,11 @@ pandora.ui.list = function() { // fixme: remove view argument }, openpreview: function(data) { 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!!!@!') that.closePreview(); }, @@ -245,11 +249,6 @@ pandora.ui.list = function() { // fixme: remove view argument }) }) .addClass('OxTarget') - .bind({ - mousedown: function() { - Ox.print('MOUSEDOWN...') - } - }) .bindEvent({ // doubleclick opens item singleclick: function() {