Pman.Tab.BAdminEmailTemplates.bjs
authoredward <edward@roojs.com>
Tue, 6 Feb 2018 09:37:06 +0000 (17:37 +0800)
committeredward <edward@roojs.com>
Tue, 6 Feb 2018 09:37:06 +0000 (17:37 +0800)
Pman.Tab.BAdminEmailTemplates.js

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

index 0658fc4..630c378 100644 (file)
                     {
                      "listeners" : {
                       "render" : "function (_self)\n{\n    _this.edit_btn = this;\n    \n    this.hide();\n}",
-                      "click" : "function (_self, e)\n{\n    var sel = _this.grid.grid.selModel.getSelected();\n    \n    if (!sel || sel.data.id * 1 < 1) {\n        Roo.MessageBox.alert(\"Error\", \"Select a message to edit\");\n        return;\n    }\n    \n    Pman.Dialog.BAdminEmail.show( {id : data.id, module : 'core_email'} , function() {\n        _this.table.footer.onClick('first');\n    }); \n}"
+                      "click" : "function (_self, e)\n{\n    var sel = _this.grid.grid.selModel.getSelected();\n    \n    if (!sel || sel.data.id * 1 < 1) {\n        Roo.MessageBox.alert(\"Error\", \"Select a message to edit\");\n        return;\n    }\n    \n    Pman.Dialog.BAdminEmail.show( {id : sel.data.id, module : 'core_email'} , function() {\n        _this.table.footer.onClick('first');\n    }); \n}"
                      },
                      "xtype" : "Button",
                      "$ xns" : "Roo.bootstrap",
index ba1787c..2534c4c 100644 (file)
@@ -230,7 +230,7 @@ Pman.Tab.BAdminEmailTemplates = new Roo.XComponent({
                              return;
                          }
                          
-                         Pman.Dialog.BAdminEmail.show( {id : data.id, module : 'core_email'} , function() {
+                         Pman.Dialog.BAdminEmail.show( {id : sel.data.id, module : 'core_email'} , function() {
                              _this.table.footer.onClick('first');
                          }); 
                      },