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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 18 03:40:44 PDT 2013


Author: verenadiewald
Date: 2013-03-18 03:40:44 -0700 (Mon, 18 Mar 2013)
New Revision: 8587

Modified:
   branches/2.7/http/plugins/mb_selectScale.js
   trunk/mapbender/http/plugins/mb_selectScale.js
Log:
Bugfix for IE9: Set selected scale option explicitly to avoid an empty option value in IE9

Modified: branches/2.7/http/plugins/mb_selectScale.js
===================================================================
--- branches/2.7/http/plugins/mb_selectScale.js	2013-03-12 15:31:50 UTC (rev 8586)
+++ branches/2.7/http/plugins/mb_selectScale.js	2013-03-18 10:40:44 UTC (rev 8587)
@@ -7,6 +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');
 	};
 
 	var init = function () {

Modified: trunk/mapbender/http/plugins/mb_selectScale.js
===================================================================
--- trunk/mapbender/http/plugins/mb_selectScale.js	2013-03-12 15:31:50 UTC (rev 8586)
+++ trunk/mapbender/http/plugins/mb_selectScale.js	2013-03-18 10:40:44 UTC (rev 8587)
@@ -7,6 +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');
 	};
 
 	var init = function () {



More information about the Mapbender_commits mailing list