Pman.Dialog.CoreEmail.bjs
[Pman.Core] / Pman.Dialog.CoreEmail.bjs
index 81be475..25cc085 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",
                "fieldLabel" : "Template",
                "forceSelection" : true,
                "selectOnFocus" : true,
                "pageSize" : 25,
-               "displayField" : "file",
+               "displayField" : "name",
                "emptyText" : "Select BCC Group",
                "hiddenName" : "template",
                "minChars" : 2,
                "allowBlank" : true,
                "typeAhead" : true,
                "editable" : false,
-               "width" : 200,
+               "width" : 300,
                "$ xns" : "Roo.form",
                "name" : "name",
                "qtip" : "Select BCC Group",
                "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
                "loadingText" : "Searching...",
+               "Boolean forceSelection" : true,
                "items" : [
                 {
                  "listeners" : {
                  },
                  "xtype" : "Store",
                  "remoteSort" : true,
-                 "$ sortInfo" : "{ direction : 'DESC', field: 'file' }",
+                 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
                  "$ xns" : "Roo.data",
                  "* prop" : "store",
                  "items" : [
                   {
-                   "$ url" : "baseURL + '/Core/MailTemplateList.php'",
+                   "$ url" : "baseURL + '/Roo/Groups'",
                    "xtype" : "HttpProxy",
                    "method" : "GET",
                    "$ xns" : "Roo.data",