remove 'new place' entry from map options menu (fixes #368)

This commit is contained in:
rlx 2012-02-21 10:03:08 +00:00
parent 8851a9c454
commit 4008f2e04f

View file

@ -219,11 +219,7 @@ 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', id: 'toggleLabels',
title: self.options.showLabels title: self.options.showLabels
@ -238,8 +234,7 @@ Ox.Map = function(options, self) {
: ['Show Controls', 'Hide Controls'], : ['Show Controls', 'Hide Controls'],
keyboard: 'c' keyboard: 'c'
} }
] ],
),
title: 'Options...', title: 'Options...',
width: 96 width: 96
}) })