From: <sea...@mi...> - 2008-12-06 22:11:38
|
Update of /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9515 Modified Files: FinderStore.js Log Message: Added trimming space at the begin and end of the dummy field values so that it will be compatible to the trimming in widget fields. Index: FinderStore.js =================================================================== RCS file: /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderStore.js,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** FinderStore.js 4 Dec 2008 21:14:23 -0000 1.12 --- FinderStore.js 6 Dec 2008 21:39:04 -0000 1.13 *************** *** 111,114 **** --- 111,119 ---- if (dummyFields[dummyFieldName] instanceof Ext.Template) { var dummyFieldValue = dummyFields[dummyFieldName].applyTemplate(record.data); + if (dummyFieldValue && dummyFieldValue != '') { + // trim the spaces before and end of the string because it is trimmed in the field widget + // this trimming makes the comparison between the value in field and value in record possible + dummyFieldValue = dummyFieldValue.replace(/^\s+|\s+$/g, ''); + } record.data[dummyFieldName] = dummyFieldValue; } |