From 6046a6792a49825c1df47f19f2dfdfc8179c8c6d Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 15 Jul 2013 09:58:20 +0000 Subject: [PATCH] allow for multi-select in clip lists --- static/js/pandora/clipList.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 7a3b82e6..f20a62b2 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -105,7 +105,6 @@ pandora.ui.clipList = function(videoRatio) { keys: ['annotations', 'id', 'in', 'out'].concat( !ui.item ? ['videoRatio'] : [] ), - max: 1, orientation: isEmbed && !isClipView ? 'horizontal' : 'both', size: 128, sort: !ui.item ? ui.listSort : ui.itemSort, @@ -175,16 +174,18 @@ pandora.ui.clipList = function(videoRatio) { }, openpreview: function(data) { // on press space key - var $video = that.find('.OxItem.OxSelected > .OxIcon > .OxVideoPlayer'); - if ($video) { - // trigger singleclick - $video.trigger('mousedown'); - Ox.UI.$window.trigger('mouseup'); + if (data.ids.length == 1) { + var $video = that.find('.OxItem.OxSelected > .OxIcon > .OxVideoPlayer'); + if ($video) { + // trigger singleclick + $video.trigger('mousedown'); + Ox.UI.$window.trigger('mouseup'); + } } that.closePreview(); }, select: function(data) { - if (data.ids.length) { + if (data.ids.length == 1) { var id = data.ids[0], item = id.split('/')[0], width, height, $img = that.find('.OxItem.OxSelected > .OxIcon > img'),