[Commits] r305 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Tue Mar 31 17:00:30 CEST 2009
Author: tschaub
Date: 2009-03-31 17:00:30 +0200 (Tue, 31 Mar 2009)
New Revision: 305
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
A few lines fewer.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-31 14:47:03 UTC (rev 304)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-31 15:00:30 UTC (rev 305)
@@ -181,7 +181,6 @@
*/
initLayers: function() {
var mapConfig = this.initialConfig.map;
- var ows = this.initialConfig.ows;
this.layers = new GeoExt.data.LayerStore({
map: this.map
@@ -202,7 +201,7 @@
conf = Ext.apply({}, mapConfig.layers[i]);
layer = new OpenLayers.Layer.WMS(
conf.title || conf.name,
- ows,
+ this.ows,
{layers: conf.name, transparent: true},
{isBaseLayer: false}
);
@@ -225,11 +224,6 @@
showCapabilitiesGrid: function(){
- var doneButton = new Ext.Button({
- text: "Done"
- })
-
-
var win = new Ext.Window({
title: "Explore Data",
items: [
@@ -240,11 +234,13 @@
width: 650
})
],
- bbar: ["->",doneButton]
-
+ bbar: ["->",{
+ text: "Done",
+ handler: function() {
+ win.close();
+ }
+ }]
});
-
- doneButton.setHandler(win.close, win)
win.show();
},
More information about the Commits
mailing list