[Mapbender-commits] r8261 - branches/2.7/http/javascripts
    svn_mapbender at osgeo.org 
    svn_mapbender at osgeo.org
       
    Wed Feb 22 09:54:33 EST 2012
    
    
  
Author: verenadiewald
Date: 2012-02-22 06:54:33 -0800 (Wed, 22 Feb 2012)
New Revision: 8261
Modified:
   branches/2.7/http/javascripts/mod_legendDiv.php
Log:
legend module is a div, so we don't need parent.mb_mapObj to get the mapObj
Modified: branches/2.7/http/javascripts/mod_legendDiv.php
===================================================================
--- branches/2.7/http/javascripts/mod_legendDiv.php	2012-02-22 14:54:00 UTC (rev 8260)
+++ branches/2.7/http/javascripts/mod_legendDiv.php	2012-02-22 14:54:33 UTC (rev 8261)
@@ -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++){
 						var layerParent = mb_mapObj[ind].wms[i].checkLayerParentByLayerName(layerNames[j]); 
    
    
More information about the Mapbender_commits
mailing list