From 82cd45aeb11848a18d00c00db0c4a57a80a6ba97 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 6 Mar 2012 22:28:27 +0100 Subject: [PATCH] add timeline ui option to menu --- static/js/pandora/menu.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index 810a68dd..631c8b75 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -67,12 +67,17 @@ pandora.ui.mainMenu = function() { { id: 'showsiteposter', title: 'Always Show ' + pandora.site.site.name + ' Poster', checked: ui.showSitePoster } ] : [] ) }, + { id: 'timelines', title: 'Timelines', items: [ + { group: 'viewtimelines', min: 1, max: 1, items: ['average', 'center', 'full'].map(function(timelines) { + return {id: timelines, title: Ox.tiTitleCase(timelines), checked: ui.videoTimeline = timelines}; + }) } + ]}, { id: 'columns', title: 'Columns', items: [ { id: 'loadcolumns', title: 'Load Layout...', disabled: true }, { id: 'savecolumns', title: 'Save Layout...', disabled: true }, {}, { id: 'resetcolumns', title: 'Reset Layout', disabled: true } - ]}, + ] }, {}, { id: 'openmovie', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [ { group: 'itemview', min: 1, max: 1, items: pandora.site.itemViews.map(function(view) { @@ -80,7 +85,7 @@ pandora.ui.mainMenu = function() { checked: ui.itemView == view.id, }, view); }) }, - ]}, + ] }, { id: 'openvideo', title: 'Open Video Links', items: [ { group: 'videoview', min: 1, max: 1, items: ['player', 'editor'].map(function(view) { return {id: view, title: Ox.toTitleCase(view), checked: ui.videoView == view}; @@ -225,6 +230,8 @@ pandora.ui.mainMenu = function() { operator: '&' } }); + } else if (data.id == 'viewtimelines') { + pandora.UI.set({videoTimeline: value}); } }, click: function(data) {