avoid repeating strings

This commit is contained in:
rolux 2013-08-05 10:24:00 +00:00
parent 8e545206ef
commit ed85db8eac

View file

@ -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);
}