[Mapbender-commits] r3920 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun May 3 15:39:21 EDT 2009


Author: marc
Date: 2009-05-03 15:39:20 -0400 (Sun, 03 May 2009)
New Revision: 3920

Modified:
   trunk/mapbender/http/javascripts/mod_measure.php
Log:
added tooltip see http://trac.osgeo.org/mapbender/ticket/452

Modified: trunk/mapbender/http/javascripts/mod_measure.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_measure.php	2009-05-03 19:07:47 UTC (rev 3919)
+++ trunk/mapbender/http/javascripts/mod_measure.php	2009-05-03 19:39:20 UTC (rev 3920)
@@ -294,6 +294,7 @@
 
 var mod_closePolygon_img = new Image();
 mod_closePolygon_img.src = "../img/button_gray/closePolygon_off.gif";
+mod_closePolygon_img.title = '<?php echo _mb("Close polygon");?>';
 
 eventAfterMeasure.register(function(){
 	return mod_closePolygon();
@@ -301,7 +302,7 @@
 
 function mod_closePolygon(){
 	var str =  "<div style='position:absolute;top:25px' onmouseup='parent.mod_closePolygon_go()' ";
-	str += "onmouseover='parent.mod_measure_timeout()' onmouseout='parent.mod_measure_disableTimeout()'><img src='"+mod_closePolygon_img.src+"'></div>";
+	str += "onmouseover='parent.mod_measure_timeout()' onmouseout='parent.mod_measure_disableTimeout()'><img src='"+mod_closePolygon_img.src+"' title='"+mod_closePolygon_img.title+"'></div>";
 	return str;
 }
 function mod_closePolygon_go(){
@@ -310,7 +311,7 @@
 
 var mod_rubber_img = new Image();
 mod_rubber_img.src = "../img/button_gray/rubber_off.gif";
-mod_rubber_img.title = "gemessene Strecke l&ouml;schen";
+mod_rubber_img.title = '<?php echo _mb("Rubber");?>';
 eventAfterMeasure.register(function () {
 	return mod_rubber();
 });
@@ -325,13 +326,14 @@
 
 var mod_getArea_img = new Image();
 mod_getArea_img.src = "../img/button_gray/getArea_off.gif";
+mod_getArea_img.title = '<?php echo _mb("Get area");?>';
 eventAfterMeasure.register(function () {
 	return mod_getArea();
 });
 
 function mod_getArea(){
 	var str =  "<div id='getAreaButton' style='position:absolute;top:50px' onmouseup='parent.mod_getArea_go()' ";
-	str += "onmouseover='parent.mod_measure_timeout()' onmouseout='parent.mod_measure_disableTimeout()'><img src='"+mod_getArea_img.src+"'></div>";
+	str += "onmouseover='parent.mod_measure_timeout()' onmouseout='parent.mod_measure_disableTimeout()'><img src='"+mod_getArea_img.src+"' title='"+mod_getArea_img.title+"'></div>";
 	return str;
 }
 function mod_getArea_go(){



More information about the Mapbender_commits mailing list