From: <sea...@mi...> - 2008-06-27 20:29:35
|
Update of /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv20501 Modified Files: FinderComboGrid.js Log Message: put a try block around the focus() to avoid error message when the popup window is closed before the store loading is completed. Index: FinderComboGrid.js =================================================================== RCS file: /cvsroot/jaffa/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboGrid.js,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** FinderComboGrid.js 26 Jun 2008 22:56:12 -0000 1.10 --- FinderComboGrid.js 27 Jun 2008 20:29:29 -0000 1.11 *************** *** 138,142 **** if (this.getStore().getCount() > 0) { this.getSelectionModel().selectFirstRow(); ! this.getView().focusRow(0); } }, comboGridElement.grid); --- 138,144 ---- if (this.getStore().getCount() > 0) { this.getSelectionModel().selectFirstRow(); ! try { ! this.getView().focusRow(0); ! } catch(ex) {} } }, comboGridElement.grid); |