1
0
Fork 0
forked from 0x2620/oxjs

add proper tooltips to map

This commit is contained in:
rlx 2011-10-31 11:29:59 +00:00
commit 64032b5e9c
8 changed files with 57 additions and 17 deletions

View file

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