Pman.Dialog.CoreEmail.bjs
authorjohn <john@roojs.com>
Mon, 4 Dec 2017 03:13:57 +0000 (11:13 +0800)
committerjohn <john@roojs.com>
Mon, 4 Dec 2017 03:13:57 +0000 (11:13 +0800)
Pman.Dialog.CoreEmail.js

Pman.Dialog.CoreEmail.bjs
Pman.Dialog.CoreEmail.js

index 4ab5223..5d07ce6 100644 (file)
          "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",
index 4628427..a15e22d 100644 (file)
@@ -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,