Pman.Dialog.CoreEmail.bjs
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 07:00:38 +0000 (15:00 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 07:00:38 +0000 (15:00 +0800)
Pman.Dialog.CoreEmail.js

Pman.Dialog.CoreEmail.bjs
Pman.Dialog.CoreEmail.js

index 81be475..e3c61b1 100644 (file)
                "name" : "from_email"
               },
               {
-               "listeners" : {
-                "select" : "function (combo, record, index)\n{\n   \n/*\n    (function() { \n        combo.setValue('');\n    }).defer(100);\n*/    \n    if(!record){\n        return;\n    }\n    _this.form.findField('bodytext').setValue(record.data.content);\n\n}"
-               },
                "alwaysQuery" : true,
                "listWidth" : 400,
                "triggerAction" : "all",
                "forceSelection" : true,
                "selectOnFocus" : true,
                "pageSize" : 25,
-               "displayField" : "file",
+               "displayField" : "name",
                "emptyText" : "Select BCC Group",
                "hiddenName" : "template",
                "minChars" : 2,
index 5f92914..c2d021e 100644 (file)
@@ -668,7 +668,7 @@ Pman.Dialog.CoreEmail = {
               {
                allowBlank : true,
                alwaysQuery : true,
-               displayField : 'file',
+               displayField : 'name',
                editable : false,
                emptyText : _this._strings['2c466a2c159463f1d9ef5a7b57b52827'] /* Select BCC Group */,
                fieldLabel : _this._strings['278c491bdd8a53618c149c4ac790da34'] /* Template */,
@@ -689,22 +689,6 @@ Pman.Dialog.CoreEmail = {
                xns : Roo.form,
                '|xns' : 'Roo.form',
                xtype : 'ComboBox',
-               listeners : {
-                select : function (combo, record, index)
-                 {
-                    
-                 /*
-                     (function() { 
-                         combo.setValue('');
-                     }).defer(100);
-                 */    
-                     if(!record){
-                         return;
-                     }
-                     _this.form.findField('bodytext').setValue(record.data.content);
-                 
-                 }
-               },
                store : {
                 remoteSort : true,
                 sortInfo : { direction : 'DESC', field: 'file' },