[Commits] r1220 - apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer

commits at geoext.org commits at geoext.org
Sat Jul 4 04:56:30 CEST 2009


Author: tschaub
Date: 2009-07-04 04:56:30 +0200 (Sat, 04 Jul 2009)
New Revision: 1220

Modified:
   apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/GroupContainer.js
Log:
Set the same layer visible if no others are visible.

Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/GroupContainer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/GroupContainer.js	2009-07-04 00:40:36 UTC (rev 1219)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer/GroupContainer.js	2009-07-04 02:56:30 UTC (rev 1220)
@@ -112,9 +112,8 @@
                     vis = vis || node.layer.getVisibility();
                 });
                 if(!vis) {
-                    var child = this.lastChild;
                     window.setTimeout(function() {
-                        child.layer.setVisibility(true);
+                        record.get("layer").setVisibility(true);
                     }, 0);
                 }
             }



More information about the Commits mailing list