Pman.Tab.BAdminEmailTemplates.bjs
authoredward <edward@roojs.com>
Wed, 7 Feb 2018 04:02:01 +0000 (12:02 +0800)
committeredward <edward@roojs.com>
Wed, 7 Feb 2018 04:02:01 +0000 (12:02 +0800)
Pman.Tab.BAdminEmailTemplates.js

Pman.Tab.BAdminEmailTemplates.bjs
Pman.Tab.BAdminEmailTemplates.js

index 1ba9398..09df031 100644 (file)
                    "xtype" : "Column",
                    "$ xns" : "Roo.bootstrap",
                    "items" : [
-                    {
-                     "listeners" : {
-                      "render" : "function (_self)\n{\n    _this.edit_btn = this;\n    \n    this.hide();\n}",
-                      "click" : "function (_self, e)\n{\n    var s = _this.table.getSelectionModel().getSelected();\n        \n    if (!s || s.data.id * 1 < 1)  {\n        Roo.bootstrap.MessageBox.alert(\"Error\", 'Please select a company');\n        return;\n    }\n    \n    Pman.Dialog.BAdminCompany.show({\n        id : s.data.id\n    }, function() {\n        if (_this.table) {\n            _this.table.footer.onClick('refresh');\n        }\n    });\n    \n    \n}"
-                     },
-                     "String cls" : "roo-toolbar-button",
-                     "String weight" : "default",
-                     "xtype" : "Button",
-                     "$ xns" : "Roo.bootstrap",
-                     "String html" : "<i class=\"fa fa-edit\"></i> Edit"
-                    },
                     {
                      "listeners" : {
                       "render" : "function (_self)\n{\n    _this.delete_btn = this;\n    \n    this.hide();\n}",
-                      "click" : "function (_self, e)\n{\n    Pman.genericDelete(_this.grid, 'core_company'); \n}"
+                      "click" : "function (_self, e)\n{\n    Pman.genericDelete(_this.grid, 'core_email');\n}"
                      },
-                     "String cls" : "roo-toolbar-button",
                      "String weight" : "primary",
                      "xtype" : "Button",
                      "$ xns" : "Roo.bootstrap",
-                     "String html" : "<i class=\"fa fa-trash\"></i> Delete"
+                     "String html" : "<i class=\"fa fa-trash\"></i> Delete",
+                     "String style" : "margin-left: 10px; margin-right: 10px; float: right;"
                     }
                    ]
                   }
index f64772c..d6a3aeb 100644 (file)
@@ -392,48 +392,13 @@ Pman.Tab.BAdminEmailTemplates = new Roo.XComponent({
                  items  : [
                   {
                    xtype : 'Button',
-                   cls : 'roo-toolbar-button',
-                   html : _this._strings['694e249c3a9503141fa5ce3fb71d5477'] /* <i class="fa fa-edit"></i> Edit */,
-                   weight : 'default',
-                   listeners : {
-                    click : function (_self, e)
-                     {
-                         var s = _this.table.getSelectionModel().getSelected();
-                             
-                         if (!s || s.data.id * 1 < 1)  {
-                             Roo.bootstrap.MessageBox.alert("Error", 'Please select a company');
-                             return;
-                         }
-                         
-                         Pman.Dialog.BAdminCompany.show({
-                             id : s.data.id
-                         }, function() {
-                             if (_this.table) {
-                                 _this.table.footer.onClick('refresh');
-                             }
-                         });
-                         
-                         
-                     },
-                    render : function (_self)
-                     {
-                         _this.edit_btn = this;
-                         
-                         this.hide();
-                     }
-                   },
-                   xns : Roo.bootstrap,
-                   '|xns' : 'Roo.bootstrap'
-                  },
-                  {
-                   xtype : 'Button',
-                   cls : 'roo-toolbar-button',
                    html : _this._strings['ed807858fcb68abdd180481f1fcba5c5'] /* <i class="fa fa-trash"></i> Delete */,
+                   style : 'margin-left: 10px; margin-right: 10px; float: right;',
                    weight : 'primary',
                    listeners : {
                     click : function (_self, e)
                      {
-                         Pman.genericDelete(_this.grid, 'core_company'); 
+                         Pman.genericDelete(_this.grid, 'core_email');
                      },
                     render : function (_self)
                      {