remove 'new place' entry from map options menu (fixes #368)
This commit is contained in:
parent
8851a9c454
commit
4008f2e04f
1 changed files with 16 additions and 21 deletions
|
@ -219,27 +219,22 @@ Ox.Map = function(options, self) {
|
||||||
})
|
})
|
||||||
.appendTo(that);
|
.appendTo(that);
|
||||||
self.$select = Ox.MenuButton({
|
self.$select = Ox.MenuButton({
|
||||||
items: Ox.merge(
|
items: [
|
||||||
self.options.editable
|
{
|
||||||
? [{id: 'new Place', title: 'New Place...', keyboard: 'n'}, {}]
|
id: 'toggleLabels',
|
||||||
: [],
|
title: self.options.showLabels
|
||||||
[
|
? ['Hide Labels', 'Show Labels']
|
||||||
{
|
: ['Show Labels', 'Hide Labels'],
|
||||||
id: 'toggleLabels',
|
keyboard: 'l'
|
||||||
title: self.options.showLabels
|
},
|
||||||
? ['Hide Labels', 'Show Labels']
|
{
|
||||||
: ['Show Labels', 'Hide Labels'],
|
id: 'toggleControls',
|
||||||
keyboard: 'l'
|
title: self.options.showControls
|
||||||
},
|
? ['Hide Controls', 'Show Controls']
|
||||||
{
|
: ['Show Controls', 'Hide Controls'],
|
||||||
id: 'toggleControls',
|
keyboard: 'c'
|
||||||
title: self.options.showControls
|
}
|
||||||
? ['Hide Controls', 'Show Controls']
|
],
|
||||||
: ['Show Controls', 'Hide Controls'],
|
|
||||||
keyboard: 'c'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
|
||||||
title: 'Options...',
|
title: 'Options...',
|
||||||
width: 96
|
width: 96
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue