1
0
Fork 0
forked from 0x2620/oxjs

add tooltips to map place info; fix a bug with autocomplete and live updates (fixes #453)

This commit is contained in:
rlx 2012-02-15 16:13:09 +00:00
commit 972808eb17
4 changed files with 19 additions and 16 deletions

View file

@ -624,10 +624,15 @@ Ox.AnnotationFolder = function(options, self) {
});
self.options.selected = item.id;
self.$annotations.options({selected: self.options.selected});
if (self.widget && isDefined(item)) {
if (self.widget) {
self.options.type == 'event'
? self.$calendar.options({events: getEvents()})
: self.$map.options({places: getPlaces()});
// if updating has made the item match
// an event or place, then select it
self.$widget.options({selected: item[self.options.type].id});
isDefined(item) && self.$widget.options({
selected: item[self.options.type].id
});
}
return that;
};