From 6f5b051821b5fa3e8431ddfb40490163ecbcd5b7 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 15 Apr 2015 22:44:52 +0100 Subject: [PATCH] fix annotations edit menu --- source/UI/js/Video/AnnotationPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/AnnotationPanel.js b/source/UI/js/Video/AnnotationPanel.js index 0163bfdc..76573479 100644 --- a/source/UI/js/Video/AnnotationPanel.js +++ b/source/UI/js/Video/AnnotationPanel.js @@ -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} }), [ {},