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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 20 10:37:26 EST 2009


Author: christoph
Date: 2009-01-20 10:37:26 -0500 (Tue, 20 Jan 2009)
New Revision: 3472

Modified:
   trunk/mapbender/lib/basic.js
Log:
code cleaning

Modified: trunk/mapbender/lib/basic.js
===================================================================
--- trunk/mapbender/lib/basic.js	2009-01-20 15:34:21 UTC (rev 3471)
+++ trunk/mapbender/lib/basic.js	2009-01-20 15:37:26 UTC (rev 3472)
@@ -81,28 +81,28 @@
 }
 
 function mb_getMousePos(e,fName){
-if(fName){
-     if(ie){
-        clickX = window.frames[fName].event.clientX;
-        clickY = window.frames[fName].event.clientY;
-     }
-     else{
-        clickX = e.pageX;
-        clickY = e.pageY;
-     }
-  }
-  else{
-       if(ie){
-        clickX = event.clientX;
-        clickY = event.clientY;
-     }
-     else{
-        clickX = e.pageX;
-        clickY = e.pageY;
-     }
-  }
-  var pos = [clickX,clickY];
-  return pos;
+	if(fName){
+		if(ie){
+			clickX = window.frames[fName].event.clientX;
+			clickY = window.frames[fName].event.clientY;
+		}
+		else{
+			clickX = e.pageX;
+			clickY = e.pageY;
+		}
+	}
+	else{
+		if(ie){
+			clickX = event.clientX;
+			clickY = event.clientY;
+		}
+		else{
+			clickX = e.pageX;
+			clickY = e.pageY;
+		}
+	}
+	var pos = [clickX,clickY];
+	return pos;
 }
 
 function mb_arrangeElement(frameName, elName, left, top) {
@@ -114,5 +114,4 @@
       document.getElementById(elName).style.top = top;
       document.getElementById(elName).style.left = left;   
    }
-}
-
+}
\ No newline at end of file



More information about the Mapbender_commits mailing list