[Mapbender-commits] r9123 - branches/2.7/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Nov 11 08:00:55 PST 2014


Author: astrid_emde
Date: 2014-11-11 08:00:54 -0800 (Tue, 11 Nov 2014)
New Revision: 9123

Modified:
   branches/2.7/http/javascripts/mod_setBackground.php
Log:
selected by value not by index

Modified: branches/2.7/http/javascripts/mod_setBackground.php
===================================================================
--- branches/2.7/http/javascripts/mod_setBackground.php	2014-11-05 07:00:06 UTC (rev 9122)
+++ branches/2.7/http/javascripts/mod_setBackground.php	2014-11-11 16:00:54 UTC (rev 9123)
@@ -84,7 +84,8 @@
     }
     
     /* SET BACKGROUND */
-    setBackgroundSelectBox.selectedIndex = newBackground;
+    $( "select[name='mod_setBackground_list'] option[value='"+newBackground+"']" ).attr('selected','selected');
+	
     setSingleMapRequest(mod_setBackground_target,map.wms[newBackground].wms_id);
     mod_setBackground_active = newBackground;
     



More information about the Mapbender_commits mailing list