[Commits] r309 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Wed Apr 1 18:35:00 CEST 2009
Author: sbenthall
Date: 2009-04-01 18:35:00 +0200 (Wed, 01 Apr 2009)
New Revision: 309
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
fixing broken CapabilitiesGrid Done button and restoring the initWMSStore()
call to get app working again. Also, replaced "Available Layers" text with
"Add Layers" text.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-01 12:03:07 UTC (rev 308)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-01 16:35:00 UTC (rev 309)
@@ -69,6 +69,7 @@
// create the layers store
this.initLayers();
+ this.initWMSStore();
var toolbarItems = this.initMapControlsAndToolbar();
@@ -98,7 +99,7 @@
})
}],
tbar: [new Ext.Button({
- text : "Available Layers...",
+ text : "Add Layers...",
handler : this.showCapabilitiesGrid,
scope: this
})]
@@ -212,7 +213,7 @@
showCapabilitiesGrid: function(){
var win = new Ext.Window({
- title: "Explore Data",
+ title: "Available Layers",
items: [
new CapabilitiesGrid({
store : this.wmsStore,
@@ -221,13 +222,14 @@
width: 650
})
],
- bbar: ["->",{
- text: "Done",
- handler: function() {
- win.close();
- })
- ],
- bbar: ["->",doneButton]
+ bbar: ["->",
+ new Ext.Button({
+ text: "Done",
+ handler: function() {
+ win.close();
+ }
+ })
+ ]
});
win.show();
More information about the Commits
mailing list