add submenu seperator, closes #1983
This commit is contained in:
parent
6fb635ebf8
commit
6e8a338f8a
1 changed files with 34 additions and 13 deletions
|
@ -1690,9 +1690,13 @@ pandora.ui.mainMenu = function() {
|
||||||
Ox._('Open {0}', [Ox._(pandora.site.itemName.singular)]),
|
Ox._('Open {0}', [Ox._(pandora.site.itemName.singular)]),
|
||||||
Ox._('Open {0}', [Ox._(pandora.site.itemName.plural)])
|
Ox._('Open {0}', [Ox._(pandora.site.itemName.plural)])
|
||||||
], items: [
|
], items: [
|
||||||
{ group: 'itemview', min: 1, max: 1, items: pandora.site.itemViews.filter(function(view) {
|
{
|
||||||
return view.id != 'data' && view.id != 'media' ||
|
group: 'itemview',
|
||||||
pandora.hasCapability('canSeeExtraItemViews');
|
min: 1,
|
||||||
|
max: 1,
|
||||||
|
items: [].concat(
|
||||||
|
pandora.site.itemViews.filter(function(view) {
|
||||||
|
return view.id != 'data' && view.id != 'media'
|
||||||
}).map(function(view) {
|
}).map(function(view) {
|
||||||
return Ox.extend({
|
return Ox.extend({
|
||||||
checked: ui.itemView == view.id
|
checked: ui.itemView == view.id
|
||||||
|
@ -1702,7 +1706,24 @@ pandora.ui.mainMenu = function() {
|
||||||
: void 0,
|
: void 0,
|
||||||
title: Ox._(view.title)
|
title: Ox._(view.title)
|
||||||
});
|
});
|
||||||
}) },
|
}),
|
||||||
|
pandora.hasCapability('canSeeExtraItemViews') ? [{}] : [],
|
||||||
|
pandora.hasCapability('canSeeExtraItemViews')
|
||||||
|
? pandora.site.itemViews.filter(function(view) {
|
||||||
|
return view.id == 'data' || view.id == 'media'
|
||||||
|
}).map(function(view) {
|
||||||
|
return Ox.extend({
|
||||||
|
checked: ui.itemView == view.id
|
||||||
|
}, view, {
|
||||||
|
keyboard: itemViewKey <= 10
|
||||||
|
? 'shift ' + (itemViewKey++%10)
|
||||||
|
: void 0,
|
||||||
|
title: Ox._(view.title)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
: [],
|
||||||
|
)
|
||||||
|
},
|
||||||
] },
|
] },
|
||||||
{ id: 'clips', title: Ox._('Open Clips'), items: [
|
{ id: 'clips', title: Ox._('Open Clips'), items: [
|
||||||
{ group: 'videoview', min: 1, max: 1, items: ['player', 'editor', 'timeline'].map(function(view) {
|
{ group: 'videoview', min: 1, max: 1, items: ['player', 'editor', 'timeline'].map(function(view) {
|
||||||
|
|
Loading…
Reference in a new issue