[Mapbender-commits] r2908 - in trunk/mapbender: http/javascripts lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 4 04:12:25 EDT 2008


Author: christoph
Date: 2008-09-04 04:12:25 -0400 (Thu, 04 Sep 2008)
New Revision: 2908

Modified:
   trunk/mapbender/http/javascripts/mod_dragMapSize.php
   trunk/mapbender/http/javascripts/mod_tab.js
   trunk/mapbender/lib/style.js
Log:
http://trac.osgeo.org/mapbender/ticket/291

Modified: trunk/mapbender/http/javascripts/mod_dragMapSize.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_dragMapSize.php	2008-09-04 07:52:19 UTC (rev 2907)
+++ trunk/mapbender/http/javascripts/mod_dragMapSize.php	2008-09-04 08:12:25 UTC (rev 2908)
@@ -58,7 +58,7 @@
 		mouseCatcher.style.width = 500;
 		mouseCatcher.style.height = 500;
 		mouseCatcher.style.zIndex = 160;
-		if(top.ie)
+		if($.browser.msie)
 			mouseCatcher.style.background = "url(../img/transparent.gif)"; 
 		mouseCatcher.style.left=clickX-250;
 		mouseCatcher.style.top=clickY-250;

Modified: trunk/mapbender/http/javascripts/mod_tab.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_tab.js	2008-09-04 07:52:19 UTC (rev 2907)
+++ trunk/mapbender/http/javascripts/mod_tab.js	2008-09-04 08:12:25 UTC (rev 2908)
@@ -94,7 +94,7 @@
 		
 		// open or close on click
 		// see http://www.mapbender.org/index.php/Add_events_via_DOM_in_IE_and_FF
-		if (top.ie) {
+		if ($.browser.msie) {
 		
 		   node.onclick = function() {
 		      tabs.toggleTab(that.module);

Modified: trunk/mapbender/lib/style.js
===================================================================
--- trunk/mapbender/lib/style.js	2008-09-04 07:52:19 UTC (rev 2907)
+++ trunk/mapbender/lib/style.js	2008-09-04 08:12:25 UTC (rev 2908)
@@ -10,7 +10,7 @@
 	 */
 	var createStyleTag = function() {
 		// TODO: Internet Explorer routine seems a little buggy
-		if (top.ie) {
+		if ($.browser.msie) {
 			// create a Style Sheet object (IE only)
 			//styleSheetObj=document.createStyleSheet();
 			// get the DOM node of the style sheet object, set the type
@@ -34,7 +34,7 @@
 	 */
 	this.addClass = function(className,cssString) {
 		// TODO: Internet Explorer routine seems a little buggy
-		if (top.ie) {
+		if ($.browser.msie) {
 			//add new style declaration to chosen styleSheet 
 			var cssRules = cssString.split(";");
 			for (i=0; i<cssRules.length-1; i++){
@@ -51,4 +51,4 @@
 	var styleSheetObj; //IE only...
 	
 	createStyleTag();
-};
\ No newline at end of file
+};



More information about the Mapbender_commits mailing list