1
0
Fork 0
forked from 0x2620/oxjs

in annotation panel, make links to define/edit places/events work (fixes #561)

This commit is contained in:
rlx 2012-02-21 11:20:03 +00:00
commit db6f68681a
3 changed files with 57 additions and 39 deletions

View file

@ -355,6 +355,15 @@ Ox.ListMap = function(options, self) {
select: selectItem
});
// if loaded with selection, set map and form
self.options.selected && self.$list.bindEventOnce({
load: function() {
self.$list.triggerEvent({
select: {ids: [self.options.selected]}
});
}
});
self.$listStatusbar = Ox.Bar({
size: 16
});
@ -369,7 +378,6 @@ Ox.ListMap = function(options, self) {
findPlaceholder: 'Find on Map',
height: self.options.height,
places: self.options.places,
selected: self.options.selected,
//statusbar: true,
showControls: self.options.showControls,
showLabels: self.options.showLabels,