From 7756e7ddbff345794bf435f865b9d74d8d598925 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2012 18:06:16 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 3 ++- Pman.Dialog.CoreNotifyRecur.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 1dcad3fd..b3c65087 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -49,7 +49,8 @@ "items": [ { "listeners": { - "update": "function (_self, record, operation)\n{\n Roo.log(operation);\n if (operation != 'commit') {\n return;\n }\n new Pman.Request({\n url : baseURL + '/Roo/Core_notify_recur',\n method :'POST',\n params : record.data,\n success : function()\n {\n //??\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"There was a problem saving\");\n }\n });\n \n \n \n}" + "update": "function (_self, record, operation)\n{\n Roo.log(operation);\n if (operation != 'commit') {\n return;\n }\n new Pman.Request({\n url : baseURL + '/Roo/Core_notify_recur',\n method :'POST',\n params : record.data,\n success : function()\n {\n //??\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"There was a problem saving\");\n }\n });\n \n \n \n}", + "beforeload": "function (_self, o)\n{\n o.params = Roo.apply(o.params, {\n person_id : _this.data.person_id,\n onid : _this.data.onid,\n ontable : _this.data.ontable,\n method : _this.data.method\n });\n \n}" }, "*prop": "dataSource", "remoteSort": true, diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 5dd9c47c..5891cbe4 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -105,6 +105,16 @@ Pman.Dialog.CoreNotifyRecur = { + }, + beforeload : function (_self, o) + { + o.params = Roo.apply(o.params, { + person_id : _this.data.person_id, + onid : _this.data.onid, + ontable : _this.data.ontable, + method : _this.data.method + }); + } }, remoteSort : true, -- 2.39.2