[fusion-commits] r1797 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Feb 20 13:42:38 EST 2009


Author: pdeschamps
Date: 2009-02-20 13:42:38 -0500 (Fri, 20 Feb 2009)
New Revision: 1797

Modified:
   trunk/widgets/Maptip.js
Log:
moved MG maptip content into it's own div for the tip and hyperlink


Modified: trunk/widgets/Maptip.js
===================================================================
--- trunk/widgets/Maptip.js	2009-02-20 18:30:04 UTC (rev 1796)
+++ trunk/widgets/Maptip.js	2009-02-20 18:42:38 UTC (rev 1797)
@@ -220,12 +220,16 @@
             else
             {
                 if (tip) {
-                    contentDiv.innerHTML = tip.replace(/\n/g, "<br>");
+                    var mapTipContent = document.createElement('DIV');
+                    mapTipContent.innerHTML = tip.replace(/\n/g, "<br>");
+                    contentDiv.appendChild(mapTipContent);
                     empty = false;
                 }
 
                 if (hyperlink) {
-                    contentDiv.innerHTML = contentDiv.innerHTML + hyperlink.replace(/\n/g, "<br>");
+                    var mapTipContent = document.createElement('DIV');
+                    mapTipContent.innerHTML =  hyperlink.replace(/\n/g, "<br>");
+                    contentDiv.appendChild(mapTipContent);
                     empty = false;
                 }
             }



More information about the fusion-commits mailing list