forked from 0x2620/oxjs
add proper tooltips to map
This commit is contained in:
parent
479e7da2f5
commit
64032b5e9c
8 changed files with 57 additions and 17 deletions
|
|
@ -804,8 +804,8 @@ Ox.ListMap = function(options, self) {
|
|||
});
|
||||
self.$placeName.options({title: place.geoname || ''});
|
||||
self.$placeTitle.show();
|
||||
self.$placeForm.values(place).show();
|
||||
self.$areaKmInput.options({value: Ox.formatArea(place.area)});
|
||||
self.$placeForm.values(place).show();
|
||||
self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'}).show();
|
||||
updateMatches();
|
||||
} else {
|
||||
|
|
@ -848,10 +848,10 @@ Ox.ListMap = function(options, self) {
|
|||
names = Ox.filter(Ox.merge([place.name], place.alternativeNames), function(name) {
|
||||
return name !== '';
|
||||
});
|
||||
Ox.print('names', names);
|
||||
if (names.length) {
|
||||
self.$matchesInput.options({value: ''});
|
||||
self.options.getMatches(names, function(matches) {
|
||||
self.$matchesInput.options({value: matches});
|
||||
self.$matchesInput.options({value: Ox.formatNumber(matches)});
|
||||
});
|
||||
} else {
|
||||
self.$matchesInput.options({value: 0});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue