add timeline ui option to menu

This commit is contained in:
rolux 2012-03-06 22:28:27 +01:00
parent 6f82e1298f
commit 82cd45aeb1

View file

@ -67,6 +67,11 @@ 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 },
@ -225,6 +230,8 @@ pandora.ui.mainMenu = function() {
operator: '&'
}
});
} else if (data.id == 'viewtimelines') {
pandora.UI.set({videoTimeline: value});
}
},
click: function(data) {