From 23405ce183e2058774a6976ff664b9b69836208e Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> 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 ee2a03f..931761f 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() {