forked from 0x2620/pandora
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({
|
.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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue