← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2397: (GIS) Minor bug fixed.

 

Merge authors:
  Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 2397 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-10-20 17:10:04 +0200
message:
  (GIS) Minor bug fixed.
modified:
  dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== 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);
                     }
                 }
             }