X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=public%2Fjs%2Fsyj.js;h=7b2448cb09481b86a79f90f6120ae6178173baaf;hp=6c4fabe79a206c7193ce0072684b3e8572314a62;hb=a406f7ab23d1089170517a8997e1c2221e5748a0;hpb=a73afe740db490814c19e8a0023480b11b867db2 diff --git a/public/js/syj.js b/public/js/syj.js index 6c4fabe..7b2448c 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -427,7 +427,7 @@ var SYJView = { if (aPos.hasOwnProperty('lon') && aPos.hasOwnProperty('lat') && aPos.hasOwnProperty('zoom')) { center = new OpenLayers.LonLat(parseFloat(aPos.lon), parseFloat(aPos.lat)).transform(WGS84, Mercator); - zoom = parseInt(aPos.zoom); + zoom = parseInt(aPos.zoom, 10); } else if (aPos.hasOwnProperty('minlon') && aPos.hasOwnProperty('minlat') && aPos.hasOwnProperty('maxlon') && aPos.hasOwnProperty('maxlat')) { extent = new OpenLayers.Bounds(aPos.minlon, aPos.minlat, aPos.maxlon, aPos.maxlat) @@ -693,7 +693,7 @@ var SYJModalClass = Class.create({ input = this.area.select('input[type="text"]')[0]; (function () { input.activate(); - }).defer(); + }.defer()); } else { this.modalbox.hide(); }