"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tine20/library/ExtJS/src/widgets/form/Combo.js" between
tine20-2020.08.3.tar.gz and tine20-2020.08.4.tar.gz

About: Tine 2.0 is a platform independent business software system which combines groupware and customer relationship management (CRM). Commercial support is available. Source code.

Combo.js  (tine20-2020.08.3):Combo.js  (tine20-2020.08.4)
skipping to change at line 218 skipping to change at line 218
/** /**
* @cfg {String} triggerAction The action to execute when the trigger is cli cked. * @cfg {String} triggerAction The action to execute when the trigger is cli cked.
* <div class="mdetail-params"><ul> * <div class="mdetail-params"><ul>
* <li><b><tt>'query'</tt></b> : <b>Default</b> * <li><b><tt>'query'</tt></b> : <b>Default</b>
* <p class="sub-desc">{@link #doQuery run the query} using the {@link Ext.f orm.Field#getRawValue raw value}.</p></li> * <p class="sub-desc">{@link #doQuery run the query} using the {@link Ext.f orm.Field#getRawValue raw value}.</p></li>
* <li><b><tt>'all'</tt></b> : * <li><b><tt>'all'</tt></b> :
* <p class="sub-desc">{@link #doQuery run the query} specified by the <tt>{ @link #allQuery}</tt> config option</p></li> * <p class="sub-desc">{@link #doQuery run the query} specified by the <tt>{ @link #allQuery}</tt> config option</p></li>
* </ul></div> * </ul></div>
* <p>See also <code>{@link #queryParam}</code>.</p> * <p>See also <code>{@link #queryParam}</code>.</p>
*/ */
triggerAction : 'query', triggerAction : 'all',
/** /**
* @cfg {Number} minChars The minimum number of characters the user must typ e before autocomplete and * @cfg {Number} minChars The minimum number of characters the user must typ e before autocomplete and
* {@link #typeAhead} activate (defaults to <tt>4</tt> if <tt>{@link #mode} = 'remote'</tt> or <tt>0</tt> if * {@link #typeAhead} activate (defaults to <tt>4</tt> if <tt>{@link #mode} = 'remote'</tt> or <tt>0</tt> if
* <tt>{@link #mode} = 'local'</tt>, does not apply if * <tt>{@link #mode} = 'local'</tt>, does not apply if
* <tt>{@link Ext.form.TriggerField#editable editable} = false</tt>). * <tt>{@link Ext.form.TriggerField#editable editable} = false</tt>).
*/ */
minChars : 4, minChars : 4,
/** /**
* @cfg {Boolean} autoSelect <tt>true</tt> to select the first result gather ed by the data store (defaults * @cfg {Boolean} autoSelect <tt>true</tt> to select the first result gather ed by the data store (defaults
* to <tt>true</tt>). A false value would require a manual selection from t he dropdown list to set the components value * to <tt>true</tt>). A false value would require a manual selection from t he dropdown list to set the components value
skipping to change at line 484 skipping to change at line 484
this.selectedIndex = -1; this.selectedIndex = -1;
if(this.mode == 'local'){ if(this.mode == 'local'){
if(!Ext.isDefined(this.initialConfig.queryDelay)){ if(!Ext.isDefined(this.initialConfig.queryDelay)){
this.queryDelay = 10; this.queryDelay = 10;
} }
if(!Ext.isDefined(this.initialConfig.minChars)){ if(!Ext.isDefined(this.initialConfig.minChars)){
this.minChars = 0; this.minChars = 0;
} }
} }
if (this.expandOnFocus) {
this.lazyInit = false;
this.on('focus', function(){
this.onTriggerClick();
});
}
// NOTE: we don't blur the element in the UI as it looks ugly to loose f
ocus class
// but we trigger blur event chain
if (this.blurOnSelect){
this.on('select', function(){
_.delay(() => {
const focusClass = this.focusClass;
this.focusClass = '';
Ext.form.TriggerField.superclass.onBlur.call(this);
this.focusClass = focusClass;
}, 100)
}, this);
}
}, },
// private // private
onRender : function(ct, position){ onRender : function(ct, position){
if(this.hiddenName && !Ext.isDefined(this.submitValue)){ if(this.hiddenName && !Ext.isDefined(this.submitValue)){
this.submitValue = false; this.submitValue = false;
} }
Ext.form.ComboBox.superclass.onRender.call(this, ct, position); Ext.form.ComboBox.superclass.onRender.call(this, ct, position);
if(this.hiddenName){ if(this.hiddenName){
this.hiddenField = this.el.insertSibling({tag:'input', type:'hidden' , name: this.hiddenName, this.hiddenField = this.el.insertSibling({tag:'input', type:'hidden' , name: this.hiddenName,
 End of changes. 2 change blocks. 
1 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)