[Mapbender-commits] r8260 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 22 09:54:01 EST 2012
Author: verenadiewald
Date: 2012-02-22 06:54:00 -0800 (Wed, 22 Feb 2012)
New Revision: 8260
Modified:
trunk/mapbender/http/javascripts/mod_legendDiv.php
Log:
legend module is a div, so we don't need parent.mb_mapObj to get the mapObj
Modified: trunk/mapbender/http/javascripts/mod_legendDiv.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_legendDiv.php 2012-02-17 13:40:01 UTC (rev 8259)
+++ trunk/mapbender/http/javascripts/mod_legendDiv.php 2012-02-22 14:54:00 UTC (rev 8260)
@@ -54,7 +54,7 @@
var str_tmp = "";
if(reverse == 'true') {
- for(var i=parent.mb_mapObj[ind].wms.length-1; i>=0; i--){
+ for(var i=mb_mapObj[ind].wms.length-1; i>=0; i--){
var layerNames = mb_mapObj[ind].wms[i].getLayers(mb_mapObj[ind]);
for(var j=0; j<layerNames.length; j++){
More information about the Mapbender_commits
mailing list