avoid repeating strings
This commit is contained in:
parent
8e545206ef
commit
ed85db8eac
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue