From 808348e4a279e2bb850f3c7367ca547ee4c722ff Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 15 Apr 2015 18:27:06 +0100 Subject: [PATCH] keyboard shortcuts end at '9' --- static/js/helpDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/helpDialog.js b/static/js/helpDialog.js index 6f52e7b2..f3b4cd32 100644 --- a/static/js/helpDialog.js +++ b/static/js/helpDialog.js @@ -55,7 +55,7 @@ pandora.ui.helpDialog = function() { var $html = $('
'), strings = Ox.clone(pandora.site, true); - strings.addAnnotationShortcuts = strings.layers.map(function(layer, index) { + strings.addAnnotationShortcuts = strings.layers.slice(0, 9).map(function(layer, index) { return '' + (index + 1) + '' + Ox._('Add {0}', [layer.item.toLowerCase()]) + ''; }).join('\n'); strings.itemName = Ox.map(strings.itemName, function(v) {