Pman.Dialog.CoreMailingListMessage.bjs
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 06:13:06 +0000 (14:13 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 06:13:06 +0000 (14:13 +0800)
Pman.Dialog.CoreMailingListMessage.js

Pman.Dialog.CoreMailingListMessage.bjs
Pman.Dialog.CoreMailingListMessage.js

index ebfd82a..24a05b1 100644 (file)
                                         }
                                     ]
                                 },
-                                {
-                                    "text": "Email template",
-                                    "xtype": "Button",
-                                    "|xns": "Roo.Toolbar",
-                                    "items": [
-                                        {
-                                            "|xns": "Roo.menu",
-                                            "xtype": "Menu",
-                                            "*prop": "menu",
-                                            "items": [
-                                                {
-                                                    "listeners": {
-                                                        "click": "function (_self, e)\n{\n\n    var l = document.location;\n    new Pman.Request({\n\n        url : baseURL + '/Crm/ImportHtml.php',\n\n        method: 'POST',\n        mask : \"Loading\",\n        params : {\n              importUrl : l.protocol +'//' + l.host +   rootURL + '/Pman/Crm/mail_templates/responsive1.html',\n       },\n        success : function (res) {\n\n         _this.form.findField('bodytext').setValue(res.data);\n        }\n  \n    });\n}"
-                                                    },
-                                                    "text": "Responsive Email (1)",
-                                                    "xtype": "Item",
-                                                    "|xns": "Roo.menu"
-                                                }
-                                            ]
-                                        }
-                                    ]
-                                },
                                 {
                                     "text": "Use template",
                                     "xtype": "Button",
index 3ff85e7..1ca4cc5 100644 (file)
@@ -123,44 +123,6 @@ Pman.Dialog.CoreMailingListMessage = {
                                     ]
                                 }
                             },
-                            {
-                                xtype: 'Button',
-                                xns: Roo.Toolbar,
-                                text : "Email template",
-                                menu : {
-                                    xtype: 'Menu',
-                                    xns: Roo.menu,
-                                    items : [
-                                        {
-                                            xtype: 'Item',
-                                            xns: Roo.menu,
-                                            listeners : {
-                                                click : function (_self, e)
-                                                {
-                                                
-                                                    var l = document.location;
-                                                    new Pman.Request({
-                                                
-                                                        url : baseURL + '/Crm/ImportHtml.php',
-                                                
-                                                        method: 'POST',
-                                                        mask : "Loading",
-                                                        params : {
-                                                              importUrl : l.protocol +'//' + l.host +   rootURL + '/Pman/Crm/mail_templates/responsive1.html',
-                                                       },
-                                                        success : function (res) {
-                                                
-                                                         _this.form.findField('bodytext').setValue(res.data);
-                                                        }
-                                                  
-                                                    });
-                                                }
-                                            },
-                                            text : "Responsive Email (1)"
-                                        }
-                                    ]
-                                }
-                            },
                             {
                                 xtype: 'Button',
                                 xns: Roo.Toolbar,