fix event handlers and split panel resize event
This commit is contained in:
parent
3f90e96c3a
commit
da9e5dbb29
27 changed files with 722 additions and 118 deletions
|
|
@ -97,7 +97,7 @@ Ox.PlacePicker = function(options, self) {
|
|||
|
||||
self.map = false;
|
||||
|
||||
function changeZoom(event, data) {
|
||||
function changeZoom(data) {
|
||||
//Ox.print('changeZoom')
|
||||
self.$map.zoom(data.value);
|
||||
}
|
||||
|
|
@ -114,18 +114,18 @@ Ox.PlacePicker = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
function findPlace(event, data) {
|
||||
function findPlace(data) {
|
||||
//Ox.print('findPlace', data);
|
||||
self.$map.find(data.value, function(place) {
|
||||
place && that.$label.html(place.geoname);
|
||||
});
|
||||
}
|
||||
|
||||
function onSelect(event, data) {
|
||||
function onSelect(data) {
|
||||
that.$label.html(data.geoname);
|
||||
}
|
||||
|
||||
function onZoom(event, data) {
|
||||
function onZoom(data) {
|
||||
self.$range.options({
|
||||
value: data.value
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue