=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2010-10-20 14:10:39 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2010-10-20 15:08:48 +0000 @@ -3478,7 +3478,7 @@ MAP.addControl(new OpenLayers.Control.ZoomBox()); - function toggleSelectFeatures() { + function toggleSelectFeatures(e) { if (GLOBALS.stores.overlay.find('name', e.layer.name) !== -1) { var names = GLOBALS.stores.overlay.collect('name'); var visibleOverlays = false; @@ -3506,11 +3506,11 @@ if (e.property == 'visibility') { if (!GLOBALS.stores.overlay.isLoaded) { GLOBALS.stores.overlay.load({callback: function() { - toggleSelectFeatures(); + toggleSelectFeatures(e); }}); } else { - toggleSelectFeatures(); + toggleSelectFeatures(e); } } }