From: <pru...@us...> - 2011-09-20 20:24:44
|
Revision: 5549 http://jaffa.svn.sourceforge.net/jaffa/?rev=5549&view=rev Author: prudhvireddy Date: 2011-09-20 20:24:38 +0000 (Tue, 20 Sep 2011) Log Message: ----------- Copying json to the new combo rec when cloned from grid record Modified Paths: -------------- branches/JAFFA_5_10_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboGrid.js Modified: branches/JAFFA_5_10_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboGrid.js =================================================================== --- branches/JAFFA_5_10_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboGrid.js 2011-09-20 00:56:08 UTC (rev 5548) +++ branches/JAFFA_5_10_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/finder/FinderComboGrid.js 2011-09-20 20:24:38 UTC (rev 5549) @@ -184,7 +184,9 @@ meta: comboGridElement.meta, listeners: { rowdblclick: function(gridElement, rowIndex, eventObject) { - var record = new Ext.data.Record(gridElement.store.data.items[rowIndex].data); + var gridRec = gridElement.store.data.items[rowIndex]; + var record = new Ext.data.Record(gridRec.data); + if(!record.json) record.json = gridRec.json; var originalValue = comboGridElement.getValue(); comboGridElement.setValue(record); var newValue = comboGridElement.getValue(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |