From 8e545206ef646480df7f0d446d42d6b4e7b352a3 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 5 Aug 2013 10:19:03 +0000 Subject: [PATCH] fix #1761 (Add tooltip to find element 'All Movies' / 'This List' switch) --- static/js/findElement.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/findElement.js b/static/js/findElement.js index 7bb4cda9..781e529a 100644 --- a/static/js/findElement.js +++ b/static/js/findElement.js @@ -15,10 +15,16 @@ pandora.ui.findElement = function() { ], overlap: 'right', type: 'image', + tooltip: Ox._('Find: This List'), value: 'list' }) .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') + }); pandora.$ui.findInput.focusInput(true); } }),