From a660dc327cc2b6ce5789fbac300b982cd817e7e4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 10 Jul 2013 17:27:38 +0000 Subject: [PATCH] sort video by clip props --- static/js/pandora/list.js | 2 +- static/js/pandora/utils.js | 2 +- static/js/pandora/videoView.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 97ad50d97..cdfb5d15b 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -382,7 +382,7 @@ pandora.ui.list = function() { that = pandora.ui.navigationView(view); } - if (['list', 'grid', 'clips', 'timelines'].indexOf(view) > -1) { + if (['list', 'grid', 'clips', 'timelines', 'video'].indexOf(view) > -1) { pandora.enableDragAndDrop(that, true); diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index dfd020032..4274446d6 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1256,7 +1256,7 @@ pandora.isClipView = function(view, item) { item = pandora.user.ui.item; } return ( - !item ? ['calendar', 'clip', 'map'] : ['calendar', 'clips', 'map'] + !item ? ['calendar', 'clip', 'map', 'video'] : ['calendar', 'clips', 'map'] ).indexOf(view) > -1; }; diff --git a/static/js/pandora/videoView.js b/static/js/pandora/videoView.js index 465c005b4..1cfa8d4f7 100644 --- a/static/js/pandora/videoView.js +++ b/static/js/pandora/videoView.js @@ -8,6 +8,11 @@ pandora.ui.videoView = function() { that = Ox.Element().css({ width: '100%', hegiht: '100%', + }).update({ + sort: function() { + //fixme just update player items + loadPlayer(); + } }), range = [0, 500], clips = [],