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

commits at geoext.org commits at geoext.org
Mon Mar 30 23:46:55 CEST 2009


Author: sbenthall
Date: 2009-03-30 23:46:55 +0200 (Mon, 30 Mar 2009)
New Revision: 296

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
"Done" button on CapabilitiesGrid window


Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-03-30 21:43:22 UTC (rev 295)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-03-30 21:46:55 UTC (rev 296)
@@ -198,15 +198,25 @@
     },
 
     showCapabilitiesGrid: function(){
+
+        var doneButton = new Ext.Button({
+            text: "Done"
+        })
+
+
         var win = new Ext.Window({
             items: [
                 new CapabilitiesGrid({
                     url : this.ows,
                     mapPanel : this.mapPanel
                 })
-            ]
+            ],
+            bbar: [doneButton]
+                
         });
         
+        doneButton.setHandler(win.close, win)
+
         win.show();
     },
 
@@ -273,4 +283,4 @@
         this.mapPanel.add(win);
         win.show();
     }
-});
+});
\ No newline at end of file



More information about the Commits mailing list