cosmetic changes

This commit is contained in:
rolux 2014-01-18 01:35:21 +00:00
parent 7be141ce60
commit 1f51ba8589

View file

@ -219,10 +219,11 @@ Ox.AnnotationPanel = function(options, self) {
self.$editMenuButton && self.$editMenuButton.remove();
self.$editMenuButton = Ox.MenuButton({
items: [].concat(
self.options.editable ? self.options.layers.map(function(layer, i) {
self.options.layers.map(function(layer, i) {
return {id: 'add' + layer.id, title: Ox._('Add {0}', [layer.item]), keyboard: i + 1 + ''}
}).concat({}) : [],
}),
[
{},
{id: 'deselect', title: Ox._('Deselect Annotation'), disabled: !self.options.selected || self.editing, keyboard: 'escape'},
{id: 'edit', title: Ox._('Edit Annotation'), disabled: !self.options.selected || !isEditable || self.editing, keyboard: 'return'},
{id: 'delete', title: Ox._('Delete Annotation'), disabled: !self.options.selected || !isEditable, keyboard: 'delete'},