[Mapbender-commits] r6479 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 1 06:48:52 EDT 2010
Author: verenadiewald
Date: 2010-07-01 10:48:51 +0000 (Thu, 01 Jul 2010)
New Revision: 6479
Modified:
trunk/mapbender/http/javascripts/mod_zoomCoords.php
Log:
http://trac.osgeo.org/mapbender/ticket/654
Modified: trunk/mapbender/http/javascripts/mod_zoomCoords.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_zoomCoords.php 2010-07-01 10:21:59 UTC (rev 6478)
+++ trunk/mapbender/http/javascripts/mod_zoomCoords.php 2010-07-01 10:48:51 UTC (rev 6479)
@@ -29,8 +29,8 @@
x=x.replace(",",".");
y=y.replace(",",".");
- document.zoomCoordsForm.X.value=x;
- document.zoomCoordsForm.Y.value=y;
+ $("#fieldX").val(x);
+ $("#fieldY").val(y);
if (isNaN(x)==true || isNaN(y)==true) {
alert ("<?php echo _mb("Please type a number.");?>");
@@ -49,8 +49,8 @@
x=x.replace(",",".");
y=y.replace(",",".");
- document.zoomCoordsForm.X.value=x;
- document.zoomCoordsForm.Y.value=y;
+ $("#fieldX").val(x);
+ $("#fieldY").val(y);
if (isNaN(x)==true || isNaN(y)==true) {
@@ -95,12 +95,12 @@
$("#buttonZoomCoord").css({"position":"absolute","left":"150px","top":"20px","color":"Gray","border":"solid thin","height":"20px"});
$("#buttonZoomCoord").click(function () {
- zoomCoordinate(document.zoomCoordsForm.X.value, document.zoomCoordsForm.Y.value);
- highlight(document.zoomCoordsForm.X.value, document.zoomCoordsForm.Y.value);
+ zoomCoordinate($("#fieldX").val(), $("#fieldY").val());
+ highlight($("#fieldX").val(), $("#fieldY").val());
}).mouseover(function () {
- highlight(document.zoomCoordsForm.X.value, document.zoomCoordsForm.Y.value);
+ highlight($("#fieldX").val(), $("#fieldY").val());
}).mouseout(function () {
- hideHighlight(document.zoomCoordsForm.X.value, document.zoomCoordsForm.Y.value);
+ hideHighlight($("#fieldX").val(), $("#fieldY").val());
});
}
More information about the Mapbender_commits
mailing list