fix #1761 (Add tooltip to find element 'All Movies' / 'This List' switch)

This commit is contained in:
rolux 2013-08-05 10:19:03 +00:00
parent ff1d2f291c
commit 8e545206ef

View file

@ -15,10 +15,16 @@ pandora.ui.findElement = function() {
], ],
overlap: 'right', overlap: 'right',
type: 'image', type: 'image',
tooltip: Ox._('Find: This List'),
value: 'list' value: 'list'
}) })
.bindEvent({ .bindEvent({
change: function(data) { 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); pandora.$ui.findInput.focusInput(true);
} }
}), }),