cosmetic changes
This commit is contained in:
parent
7be141ce60
commit
1f51ba8589
1 changed files with 3 additions and 2 deletions
|
@ -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'},
|
||||
|
|
Loading…
Reference in a new issue