[Mapbender-commits] r7052 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 19 09:12:48 EDT 2010


Author: verenadiewald
Date: 2010-10-19 06:12:48 -0700 (Tue, 19 Oct 2010)
New Revision: 7052

Modified:
   trunk/mapbender/lib/backwards_compatibility_to_2.6.js
Log:
mb_arrangeElement: correct validation of frameName

Modified: trunk/mapbender/lib/backwards_compatibility_to_2.6.js
===================================================================
--- trunk/mapbender/lib/backwards_compatibility_to_2.6.js	2010-10-19 08:57:56 UTC (rev 7051)
+++ trunk/mapbender/lib/backwards_compatibility_to_2.6.js	2010-10-19 13:12:48 UTC (rev 7052)
@@ -43,7 +43,7 @@
 	mb_arrangeElement(map.frameName, map.elementName+ "_highlight" ,p.x-7, p.y-7);
 }
 
-function mb_hideHighlight(frameName){
+function mb_hideHighlight(frameName) {
 	var map = getMapObjByName(frameName);
 	if (map !== null) {
 		var map_el = map.getDomElement();
@@ -88,7 +88,7 @@
 }
 
 function mb_arrangeElement(frameName, elName, left, top) {
-   if(frameName !== ""){
+   if(frameName){
       window.frames[frameName].document.getElementById(elName).style.top = String(top) + "px";
       window.frames[frameName].document.getElementById(elName).style.left = String(left) + "px";
    }



More information about the Mapbender_commits mailing list