[Commits] r606 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Wed May 6 00:39:01 CEST 2009


Author: dwins
Date: 2009-05-06 00:39:01 +0200 (Wed, 06 May 2009)
New Revision: 606

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Handle single layers and empty result sets better in popups.


Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-05-05 21:48:56 UTC (rev 605)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-05-05 22:39:01 UTC (rev 606)
@@ -863,6 +863,14 @@
                 collapsible: true
             });
         }
+
+        if (items.length == 0) {
+            return;
+        }
+
+        if (items.length == 1) [
+            items[0].collapsible = false;
+        }
         
         
         var lonlat = this.map.getLonLatFromPixel(evt.xy);



More information about the Commits mailing list