From ca1211f276c1183012dad74801cd13cb605e5219 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 18 Jul 2016 15:00:38 +0800 Subject: [PATCH] Pman.Dialog.CoreEmail.bjs Pman.Dialog.CoreEmail.js --- Pman.Dialog.CoreEmail.bjs | 5 +---- Pman.Dialog.CoreEmail.js | 18 +----------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs index 81be475a..e3c61b10 100644 --- a/Pman.Dialog.CoreEmail.bjs +++ b/Pman.Dialog.CoreEmail.bjs @@ -303,9 +303,6 @@ "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", @@ -313,7 +310,7 @@ "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 25, - "displayField" : "file", + "displayField" : "name", "emptyText" : "Select BCC Group", "hiddenName" : "template", "minChars" : 2, diff --git a/Pman.Dialog.CoreEmail.js b/Pman.Dialog.CoreEmail.js index 5f929140..c2d021e0 100644 --- a/Pman.Dialog.CoreEmail.js +++ b/Pman.Dialog.CoreEmail.js @@ -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' }, -- 2.39.2