[Mapbender-commits] r8604 - branches/2.7/http/plugins trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 18 05:19:15 PDT 2013


Author: verenadiewald
Date: 2013-04-18 05:19:14 -0700 (Thu, 18 Apr 2013)
New Revision: 8604

Modified:
   branches/2.7/http/plugins/mb_selectScale.js
   trunk/mapbender/http/plugins/mb_selectScale.js
Log:
some minor changes to get scaleSelect working in IE 10

Modified: branches/2.7/http/plugins/mb_selectScale.js
===================================================================
--- branches/2.7/http/plugins/mb_selectScale.js	2013-04-16 07:46:27 UTC (rev 8603)
+++ branches/2.7/http/plugins/mb_selectScale.js	2013-04-18 12:19:14 UTC (rev 8604)
@@ -8,7 +8,7 @@
         if(!scale){ return; }
         options.$target.mapbender().repaintScale(null,null,scale);
         //Bugfix for IE9: Set selected scale option explicitly to avoid an empty option value in IE9
-        $selectScale.children("option[value='" + scale  + "']").attr('selected', 'selected');
+        $selectScale.children("option[value='" + scale  + "']").attr('selected', 'true');
 	};
 
 	var init = function () {
@@ -21,9 +21,9 @@
 				var map = this;
 				map.events.afterMapRequest.register(function () {
 					var scale = map.getScale();
-					$selectScale.children("option").eq(0)
-						.text("1 : " + scale)
-						.attr("selected", "selected");
+					$selectScale.children("option").eq(0).html("1 : " + scale);
+					$selectScale.children("option").eq(0).attr("selected", "true");
+						
 				});
 			});
 		});

Modified: trunk/mapbender/http/plugins/mb_selectScale.js
===================================================================
--- trunk/mapbender/http/plugins/mb_selectScale.js	2013-04-16 07:46:27 UTC (rev 8603)
+++ trunk/mapbender/http/plugins/mb_selectScale.js	2013-04-18 12:19:14 UTC (rev 8604)
@@ -7,8 +7,8 @@
         // IE call this with empty scale for some convoluted reason
         if(!scale){ return; }
         options.$target.mapbender().repaintScale(null,null,scale);
-      //Bugfix for IE9: Set selected scale option explicitly to avoid an empty option value in IE9
-        $selectScale.children("option[value='" + scale  + "']").attr('selected', 'selected');
+        //Bugfix for IE9: Set selected scale option explicitly to avoid an empty option value in IE9
+        $selectScale.children("option[value='" + scale  + "']").attr('selected', 'true');
 	};
 
 	var init = function () {
@@ -21,9 +21,9 @@
 				var map = this;
 				map.events.afterMapRequest.register(function () {
 					var scale = map.getScale();
-					$selectScale.children("option").eq(0)
-						.text("1 : " + scale)
-						.attr("selected", "selected");
+					$selectScale.children("option").eq(0).html("1 : " + scale);
+					$selectScale.children("option").eq(0).attr("selected", "true");
+						
 				});
 			});
 		});



More information about the Mapbender_commits mailing list