forked from 0x2620/oxjs
form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -575,6 +575,7 @@ Ox.Map = function(options, self) {
|
|||
self.$zoomInput && self.$zoomInput.remove();
|
||||
self.$zoomInput = Ox.Range({
|
||||
arrows: true,
|
||||
changeOnDrag: true,
|
||||
max: self.maxZoom,
|
||||
min: self.minZoom,
|
||||
size: that.width(),
|
||||
|
|
@ -817,7 +818,7 @@ Ox.Map = function(options, self) {
|
|||
that.overlayView.draw();
|
||||
|
||||
if (self.options.find) {
|
||||
self.$findInput.options({value: self.options.find})
|
||||
self.$findInput.value(self.options.find)
|
||||
.triggerEvent('submit', {value: self.options.find});
|
||||
} else if (self.options.selected) {
|
||||
selectPlace(self.options.selected, true);
|
||||
|
|
@ -906,7 +907,6 @@ Ox.Map = function(options, self) {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
Ox.print ('sG cD', spansGlobe(), crossesDateline())
|
||||
self.options.places({
|
||||
keys: self.placeKeys,
|
||||
query: {
|
||||
|
|
@ -1363,7 +1363,7 @@ Ox.Map = function(options, self) {
|
|||
self.map.setZoom(self.maxZoom);
|
||||
} else {
|
||||
self.zoomChanged = true;
|
||||
self.$zoomInput && self.$zoomInput.options({value: zoom});
|
||||
self.$zoomInput && self.$zoomInput.value(zoom);
|
||||
that.triggerEvent('zoom', {
|
||||
value: zoom
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue