support updating MapEditor places
This commit is contained in:
parent
f3e0632f0e
commit
bc174c49dd
1 changed files with 10 additions and 1 deletions
|
|
@ -46,12 +46,21 @@ Ox.MapEditor = function(options, self) {
|
|||
self.$list.size();
|
||||
self.$map.resizeMap();
|
||||
},
|
||||
places: function() {
|
||||
self.isAsync = Ox.isFunction(self.options.places);
|
||||
self.$list.options({
|
||||
items: Ox.clone(self.options.places)
|
||||
})
|
||||
self.$map.options({
|
||||
places: self.options.places
|
||||
})
|
||||
}
|
||||
selected: function() {
|
||||
self.$list.options({selected: self.options.selected});
|
||||
},
|
||||
width: function() {
|
||||
self.$map.resizeMap();
|
||||
}
|
||||
},
|
||||
})
|
||||
.css({
|
||||
width: self.options.width + 'px',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue