fix annotations edit menu

This commit is contained in:
rolux 2015-04-15 22:44:52 +01:00
parent 205c84b398
commit 6f5b051821

View file

@ -246,7 +246,7 @@ Ox.AnnotationPanel = function(options, self) {
self.$editMenuButton = Ox.MenuButton({
items: [].concat(
self.options.layers.map(function(layer, i) {
return {id: 'add' + layer.id, title: Ox._('Add {0}', [layer.item]), keyboard: i + 1 + ''}
return {id: 'add' + layer.id, title: Ox._('Add {0}', [layer.item]), keyboard: i < 9 ? i + 1 + '' : null}
}),
[
{},