From 030873ec1f293a0dd826e703febc0a49e03765d5 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 12 Jul 2013 14:44:33 +0000 Subject: [PATCH] update edit player controls --- static/js/pandora/editPanel.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/js/pandora/editPanel.js b/static/js/pandora/editPanel.js index 1054b60e..1cccd03d 100644 --- a/static/js/pandora/editPanel.js +++ b/static/js/pandora/editPanel.js @@ -217,17 +217,21 @@ pandora.ui.editList = function(edit) { return that; }; + pandora.ui.editPlayer = function(edit) { + var that = Ox.Element() .css({ - 'overflow-y': 'auto' + overflowY: 'auto' }); - self.$player = Ox.VideoPlayer({ - controlsBottom: ['play', 'previous', 'next', 'volume', 'position'], - controlsTop: ['fullscreen', 'scale'], + controlsBottom: ['play', 'volume', 'previous', 'next', 'loop', 'scale', 'space', 'position'], + controlsTop: ['fullscreen', 'space', 'open'], + enableKeyboard: true, enableMouse: true, + enablePosition: true, + enableTimeline: true, height: getHeight(), paused: true, position: 0, @@ -247,5 +251,6 @@ pandora.ui.editPlayer = function(edit) { return window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1; } + return that; };