[Commits] r799 - sandbox/bartvde/legend2/geoext/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Mon May 18 08:11:45 CEST 2009


Author: bartvde
Date: 2009-05-18 08:11:45 +0200 (Mon, 18 May 2009)
New Revision: 799

Modified:
   sandbox/bartvde/legend2/geoext/lib/GeoExt/data/LayerStore.js
Log:
apply patch for ticket:66

Modified: sandbox/bartvde/legend2/geoext/lib/GeoExt/data/LayerStore.js
===================================================================
--- sandbox/bartvde/legend2/geoext/lib/GeoExt/data/LayerStore.js	2009-05-18 06:06:56 UTC (rev 798)
+++ sandbox/bartvde/legend2/geoext/lib/GeoExt/data/LayerStore.js	2009-05-18 06:11:45 UTC (rev 799)
@@ -206,6 +206,15 @@
                     }
                 }
             }
+        } else if (evt.property === "visibility") {
+            var layerIndex = this.map.getLayerIndex(layer);
+            var recordIndex = this.findBy(function(rec, id) {
+                return rec.get("layer") === layer;
+            });
+            if (recordIndex > -1) {
+                var record = this.getAt(recordIndex);
+                this.fireEvent("update", this, record, Ext.data.Record.EDIT);
+            }
         }
     },
    



More information about the Commits mailing list