Changeset 1975
- Timestamp:
- 03/16/10 18:43:08 (5 months ago)
- Files:
-
- sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/examples/WMSLayerAdderExample.js (modified) (1 diff)
- sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/examples/WMSLayerAdderInWindowExample.js (modified) (1 diff)
- sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/examples/WMSLayerAdderExample.js
r1969 r1975 29 29 width: 500, 30 30 gridPanelOptions: {'height': 210}, 31 // comment the below line to have a 'textfield' instead of a 'combobox' 31 32 serverStore: oServerStore, 32 33 mapPanel: mapPanel sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/examples/WMSLayerAdderInWindowExample.js
r1973 r1975 61 61 region: "east", 62 62 gridPanelOptions: {'height': 260}, 63 // comment the below line to have a 'textfield' instead of a 64 // 'combobox' 63 65 serverStore: oServerStore, 64 66 mapPanel: mapPanel sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js
r1973 r1975 105 105 typeAhead: true, 106 106 mode: 'local', 107 fieldLabel: 'hello',108 labelAlign: 'top',109 107 forceSelection: false, 110 108 triggerAction: 'all', … … 114 112 } else { 115 113 oURLField = { 114 xtype: "textfield", 116 115 columnWidth: 0.85, 117 116 layout: 'fit', 118 117 'name': 'wms_url', 119 118 'id': 'wms_url', 119 border: false, 120 120 'emptyText': OpenLayers.i18n('Input the server address (URL)') 121 121 }; … … 199 199 200 200 triggerGetCapabilities: function() { 201 var url = Ext.getCmp('wms_url'). value;201 var url = Ext.getCmp('wms_url').getValue(); 202 202 203 203 if(!url) { … … 278 278 //autoHeight: true, 279 279 listeners: { 280 rowdblclick: this.mapPreview, 281 viewready: function(g) { 282 g.getSelectionModel().selectRow(0); 283 } 280 rowdblclick: this.mapPreview 284 281 } 285 282 }; … … 440 437 } 441 438 } 439 440 // select the first element of the list on load end 441 var grid = Ext.getCmp('wms_capabilities_grid_panel'); 442 if(grid.store.totalLength > 0) { 443 grid.getSelectionModel().selectRow(0); 444 } 442 445 }, 443 446