DataObjects/core.sql
[Pman.Core] / Pman.Dialog.CoreMailingListMessage.js
index a4414e3..c9091d4 100644 (file)
@@ -164,6 +164,19 @@ Pman.Dialog.CoreMailingListMessage = {
                             {
                                 xtype: 'ComboBox',
                                 xns: Roo.form,
+                                listeners : {
+                                    select : function (combo, record, index)
+                                    {
+                                        Roo.log(record);
+                                    /*
+                                        (function() { 
+                                            combo.setValue('');
+                                        }).defer(100);
+                                    */    
+                                        _this.form.findField('bodytext').setValue(record.data.content);
+                                    
+                                    }
+                                },
                                 allowBlank : true,
                                 alwaysQuery : true,
                                 displayField : 'file',
@@ -195,7 +208,7 @@ Pman.Dialog.CoreMailingListMessage = {
                                         }
                                     },
                                     remoteSort : true,
-                                    sortInfo : { direction : 'DESC', field: 'name' },
+                                    sortInfo : { direction : 'DESC', field: 'file' },
                                     proxy : {
                                         xtype: 'HttpProxy',
                                         xns: Roo.data,