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:
parent
96db09337c
commit
972808eb17
4 changed files with 19 additions and 16 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue