From: <b_c...@us...> - 2012-07-25 00:52:25
|
Revision: 6284 http://jaffa.svn.sourceforge.net/jaffa/?rev=6284&view=rev Author: b_calderwood Date: 2012-07-25 00:52:19 +0000 (Wed, 25 Jul 2012) Log Message: ----------- Properly stamp flex class on flex beans when creating new records. Modified Paths: -------------- branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/component/PanelController.js branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/maintenance/FlexFieldsPanel.js Modified: branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/component/PanelController.js =================================================================== --- branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/component/PanelController.js 2012-07-24 00:01:02 UTC (rev 6283) +++ branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/component/PanelController.js 2012-07-25 00:52:19 UTC (rev 6284) @@ -747,6 +747,8 @@ if (newData.flexBean && (typeof newData.flexBean == 'object')) { if (!newData.flexBean.dynaClass && oldData.flexBean && oldData.flexBean.dynaClass && oldData.flexBean.dynaClass.name) newData.flexBean.dynaClass = {name: oldData.flexBean.dynaClass.name}; + else if (panel.dynaClass) + newData.flexBean.dynaClass = {name: panel.dynaClass}; } newData.isChanged = true; Modified: branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/maintenance/FlexFieldsPanel.js =================================================================== --- branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/maintenance/FlexFieldsPanel.js 2012-07-24 00:01:02 UTC (rev 6283) +++ branches/JAFFA_5_12_RELEASE/JaffaRIA/source/html/js/extjs/jaffa/maintenance/FlexFieldsPanel.js 2012-07-25 00:52:19 UTC (rev 6284) @@ -129,6 +129,8 @@ style: 'padding:0 10px 0 0;', cls: 'x-panel-mc', sequence: fieldMeta.displaySequence?fieldMeta.displaySequence:0, + metaClass: flexClass, + dynaClass: flexInfo[i].source, items: [fieldConfig] }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |