[Commits] r411 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Fri Apr 17 21:06:24 CEST 2009
Author: sbenthall
Date: 2009-04-17 21:06:24 +0200 (Fri, 17 Apr 2009)
New Revision: 411
Modified:
apps/opengeo/geoexplorer/trunk/lib/CapabilitiesGrid.js
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
moving "Add Layers" button to window bbar
Modified: apps/opengeo/geoexplorer/trunk/lib/CapabilitiesGrid.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/CapabilitiesGrid.js 2009-04-17 04:43:53 UTC (rev 410)
+++ apps/opengeo/geoexplorer/trunk/lib/CapabilitiesGrid.js 2009-04-17 19:06:24 UTC (rev 411)
@@ -65,12 +65,6 @@
this.plugins = expander;
- this.tbar = ["->", new Ext.Button({
- text: "Add Layers",
- handler: this.addLayers,
- scope : this
- })];
-
this.cm = new Ext.grid.ColumnModel([
expander,
{header: "Name", dataIndex: "name", sortable: true},
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 04:43:53 UTC (rev 410)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 19:06:24 UTC (rev 411)
@@ -277,9 +277,7 @@
westPanel
]
}
- });
-
-
+ });
},
/**
@@ -371,6 +369,13 @@
bbar: [
"->",
new Ext.Button({
+ text: "Add Layers",
+ handler: function(){
+ capGridPanel.addLayers()
+ },
+ scope : this
+ }),
+ new Ext.Button({
text: "Done",
handler: function() {
this.capGrid.hide();
More information about the Commits
mailing list