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({ .bindEvent({
change: function(data) { change: function(data) {
pandora.$ui.findListSelect.options({ pandora.$ui.findListSelect.options({
tooltip: data.value == 'all' tooltip: Ox.getObjectById(
? Ox._('Find: All {0}', [Ox._(pandora.site.itemName.plural)]) pandora.$ui.findListSelect.options('items'),
: Ox._('Find: This List') data.value
).title
}); });
pandora.$ui.findInput.focusInput(true); pandora.$ui.findInput.focusInput(true);
} }