forked from 0x2620/oxjs
in annotation panel, make links to define/edit places/events work (fixes #561)
This commit is contained in:
parent
202d11177b
commit
db6f68681a
3 changed files with 57 additions and 39 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue