1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 2

This commit is contained in:
rolux 2011-12-21 21:03:52 +05:30
commit 074902d079
33 changed files with 163 additions and 153 deletions

View file

@ -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
});