From 1f51ba8589ac905bddd6a0886ac2985de3ce3c90 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Jan 2014 01:35:21 +0000 Subject: [PATCH] cosmetic changes --- source/Ox.UI/js/Video/AnnotationPanel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/AnnotationPanel.js b/source/Ox.UI/js/Video/AnnotationPanel.js index 14441a53..d6864905 100644 --- a/source/Ox.UI/js/Video/AnnotationPanel.js +++ b/source/Ox.UI/js/Video/AnnotationPanel.js @@ -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'},