Changeset 1277

Show
Ignore:
Timestamp:
10/31/08 17:33:46 (2 months ago)
Author:
dcorpataux
Message:

Combo config user options

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/editing/FeatureEditingPanel.js

    r1276 r1277  
    9999 
    100100    /** 
     101     * APIProperty: comboConfig 
     102     * {Object} Hash of layers with config parameters for layer selection combo 
     103     */ 
     104    comboConfig: {}, 
     105 
     106    /** 
    101107     * Property: form 
    102108     * {Ext.FormPanel} The form to edit attributes. 
     
    371377            data : data 
    372378        }); 
    373         this.combo = new Ext.form.ComboBox({ 
     379        var comboConfig = OpenLayers.Util.applyDefaults({ 
    374380            fieldLabel: OpenLayers.i18n("mf.editing.comboLabel"), 
    375381            name: "editingLayer", 
     
    387393                scope: this 
    388394            } 
    389         }); 
     395        }, this.comboConfig); 
     396        this.combo = new Ext.form.ComboBox(comboConfig); 
    390397        return this.combo; 
    391398    }, 
     
    862869            "removelayer": this.moveLayerToTop, 
    863870            scope: this 
    864         });   
     871        }); 
    865872    }, 
    866873 
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/editing/FeatureProperties.js

    r972 r1277  
    167167     */ 
    168168    url: null, 
     169 
     170    /** 
     171     * APIProperty: comboConfig 
     172     * {Object} Hash of layers with config parameters for layer selection combo 
     173     */ 
     174    comboConfig: {}, 
    169175 
    170176    getExtField: function() { 
     
    182188        }); 
    183189 
    184         return new Ext.form.ComboBox({ 
     190        var comboConfig = OpenLayers.Util.applyDefaults({ 
    185191            fieldLabel: this.name, 
    186192            typeAhead: true, 
     
    205211                } 
    206212            } 
    207         }); 
     213        }, this.comboConfig); 
     214        return new Ext.form.ComboBox(comboConfig); 
    208215    } 
    209216});