[prev in list] [next in list] [prev in thread] [next in thread]
List: mapbender-commits
Subject: [Mapbender-commits] r8587 - branches/2.7/http/plugins trunk/mapbender/http/plugins
From: svn_mapbender () osgeo ! org
Date: 2013-03-18 10:40:44
Message-ID: 20130318104044.B8FE3390323 () trac ! osgeo ! org
[Download RAW message or body]
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 () {
_______________________________________________
Mapbender_commits mailing list
Mapbender_commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic