Pman.Dialog.CoreEmail.bjs
authorEdward <edward@roojs.com>
Fri, 21 Feb 2014 04:37:50 +0000 (12:37 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Feb 2014 04:37:50 +0000 (12:37 +0800)
Pman.Dialog.CoreEmail.js

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

index 6065b39..bcb046b 100644 (file)
                             "items": [
                                 {
                                     "listeners": {
-                                        "beforeload": "function (_self, options)\n{\n    options.params = options.params || {};\n    if (typeof(_this.data) == 'undefined') {\n        return false;\n    }\n    if(_this.data.id * 1 >= 0)\n    {\n        options.params.onid = _this.data.id;\n\n        options.params.ontable = (_this.data.module) ? _this.data.module + '_mailing_list_message' : 'crm_mailing_list_message';\n    }\n}"
+                                        "beforeload": "function (_self, options)\n{\n    options.params = options.params || {};\n    if (typeof(_this.data) == 'undefined') {\n        return false;\n    }\n    if(_this.data.id * 1 >= 0)\n    {\n        options.params.onid = _this.data.id;\n\n        options.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';\n    }\n}"
                                     },
                                     "*prop": "dataSource",
                                     "remoteSort": true,
index cb0432d..7fc8ad9 100644 (file)
@@ -792,7 +792,7 @@ Pman.Dialog.CoreEmail = {
                                     {
                                         options.params.onid = _this.data.id;
                                 
-                                        options.params.ontable = (_this.data.module) ? _this.data.module + '_mailing_list_message' : 'crm_mailing_list_message';
+                                        options.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';
                                     }
                                 }
                             },