From: john Date: Mon, 4 Dec 2017 03:13:57 +0000 (+0800) Subject: Pman.Dialog.CoreEmail.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=c9f644ac1ac270a6d05a52276cd55b1f8229fa4f Pman.Dialog.CoreEmail.bjs Pman.Dialog.CoreEmail.js --- diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs index 4ab52238..5d07ce6c 100644 --- a/Pman.Dialog.CoreEmail.bjs +++ b/Pman.Dialog.CoreEmail.bjs @@ -643,7 +643,7 @@ "items" : [ { "listeners" : { - "|click" : "function()\n{\n var id = _this.form.findField('id').getValue();\n \n if(id*1 < 1){\n Roo.MessageBox.alert('Error', 'Please save the email template first');\n return;\n }\n \n var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';\n \n Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {\n _this.igrid.getDataSource().load({});\n }); \n}\n" + "|click" : "function()\n{\n var id = _this.form.findField('id').getValue();\n \n if(id*1 < 1){\n Roo.MessageBox.alert('Error', 'Please save the email template first');\n return;\n }\n \n var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';\n \n Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() {\n _this.igrid.getDataSource().load({});\n });\n}\n" }, "text" : "Add", "xtype" : "Button", diff --git a/Pman.Dialog.CoreEmail.js b/Pman.Dialog.CoreEmail.js index 46284276..a15e22d9 100644 --- a/Pman.Dialog.CoreEmail.js +++ b/Pman.Dialog.CoreEmail.js @@ -1221,7 +1221,7 @@ Pman.Dialog.CoreEmail = { Pman.Dialog.Image.show( { id : 0, onid: id, ontable: ontable }, function() { _this.igrid.getDataSource().load({}); - }); + }); } }, xns : Roo.Toolbar,