Changeset 1277
- Timestamp:
- 10/31/08 17:33:46 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/editing/FeatureEditingPanel.js
r1276 r1277 99 99 100 100 /** 101 * APIProperty: comboConfig 102 * {Object} Hash of layers with config parameters for layer selection combo 103 */ 104 comboConfig: {}, 105 106 /** 101 107 * Property: form 102 108 * {Ext.FormPanel} The form to edit attributes. … … 371 377 data : data 372 378 }); 373 this.combo = new Ext.form.ComboBox({379 var comboConfig = OpenLayers.Util.applyDefaults({ 374 380 fieldLabel: OpenLayers.i18n("mf.editing.comboLabel"), 375 381 name: "editingLayer", … … 387 393 scope: this 388 394 } 389 }); 395 }, this.comboConfig); 396 this.combo = new Ext.form.ComboBox(comboConfig); 390 397 return this.combo; 391 398 }, … … 862 869 "removelayer": this.moveLayerToTop, 863 870 scope: this 864 }); 871 }); 865 872 }, 866 873 sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/editing/FeatureProperties.js
r972 r1277 167 167 */ 168 168 url: null, 169 170 /** 171 * APIProperty: comboConfig 172 * {Object} Hash of layers with config parameters for layer selection combo 173 */ 174 comboConfig: {}, 169 175 170 176 getExtField: function() { … … 182 188 }); 183 189 184 return new Ext.form.ComboBox({190 var comboConfig = OpenLayers.Util.applyDefaults({ 185 191 fieldLabel: this.name, 186 192 typeAhead: true, … … 205 211 } 206 212 } 207 }); 213 }, this.comboConfig); 214 return new Ext.form.ComboBox(comboConfig); 208 215 } 209 216 });