From ed85db8eaca4ac87d1da16e70f43286ef5ac2dcc Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 5 Aug 2013 10:24:00 +0000 Subject: [PATCH] avoid repeating strings --- static/js/findElement.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/findElement.js b/static/js/findElement.js index 781e529a..29a9a3f9 100644 --- a/static/js/findElement.js +++ b/static/js/findElement.js @@ -21,9 +21,10 @@ pandora.ui.findElement = function() { .bindEvent({ change: function(data) { pandora.$ui.findListSelect.options({ - tooltip: data.value == 'all' - ? Ox._('Find: All {0}', [Ox._(pandora.site.itemName.plural)]) - : Ox._('Find: This List') + tooltip: Ox.getObjectById( + pandora.$ui.findListSelect.options('items'), + data.value + ).title }); pandora.$ui.findInput.focusInput(true); }