From: <sea...@mi...> - 2008-11-26 22:26:47
|
Update of /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29804 Modified Files: FinderComboBox.js Log Message: move beforeBlur() from FinderComboBox.js to ext-overrides.js(Ext.form.ComboBox), so that Ext combobox will be able to initiate change event when user delete the content in the combobox field or simply make a change before tab out. Index: FinderComboBox.js =================================================================== RCS file: /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboBox.js,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** FinderComboBox.js 14 Nov 2008 01:46:40 -0000 1.29 --- FinderComboBox.js 26 Nov 2008 22:26:27 -0000 1.30 *************** *** 255,270 **** }, - /* This method sets the 'value' field with a modified dom-value. This will ensure that the 'change' listeners are fired. */ - beforeBlur : function() { - if (this.valueField) { - var displayValue = this.el.getValue(); - if (String(displayValue) !== String(this.startValue)) { - var r = displayValue && this.displayField ? this.findRecordInStore(this.displayField, displayValue) : null; - this.value = r != null ? r.data[this.valueField] : displayValue; - } - } - Jaffa.form.FinderComboBox.superclass.beforeBlur.call(this); - }, - /* Creates a storeId based on the input */ determineStoreId: function(meta) { --- 255,258 ---- |