forked from 0x2620/pandora
add submenu seperator, closes #1983
This commit is contained in:
parent
6fb635ebf8
commit
6e8a338f8a
1 changed files with 34 additions and 13 deletions
|
@ -1690,19 +1690,40 @@ 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,
|
||||||
}).map(function(view) {
|
max: 1,
|
||||||
return Ox.extend({
|
items: [].concat(
|
||||||
checked: ui.itemView == view.id
|
pandora.site.itemViews.filter(function(view) {
|
||||||
}, view, {
|
return view.id != 'data' && view.id != 'media'
|
||||||
keyboard: itemViewKey <= 10
|
}).map(function(view) {
|
||||||
? 'shift ' + (itemViewKey++%10)
|
return Ox.extend({
|
||||||
: void 0,
|
checked: ui.itemView == view.id
|
||||||
title: Ox._(view.title)
|
}, view, {
|
||||||
});
|
keyboard: itemViewKey <= 10
|
||||||
}) },
|
? 'shift ' + (itemViewKey++%10)
|
||||||
|
: void 0,
|
||||||
|
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