Pman.Dialog.CoreNotifyRefer.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:12:34 +0000 (16:12 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:12:34 +0000 (16:12 +0800)
Pman.Dialog.CoreNotifyRefer.js

Pman.Dialog.CoreNotifyRefer.bjs
Pman.Dialog.CoreNotifyRefer.js

index 2ed0bdf..72732dd 100644 (file)
@@ -49,7 +49,7 @@
                             "items": [
                                 {
                                     "listeners": {
-                                        "update": "function (_self, record, operation)\n{\n    Roo.log(operation);\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    });\n       \n    \n    \n}"
                                     },
                                     "*prop": "dataSource",
                                     "remoteSort": true,
index f667aca..0c5dba2 100644 (file)
@@ -87,6 +87,17 @@ Pman.Dialog.CoreNotifyRefer = {
                                 update : function (_self, record, operation)
                                 {
                                     Roo.log(operation);
+                                    if (operation != 'commit') {
+                                        return;
+                                    }
+                                    new Pman.Request({
+                                        url : baseURL + '/Roo/Core_notify_recur',
+                                        method :'POST',
+                                        params : record.data
+                                    });
+                                       
+                                    
+                                    
                                 }
                             },
                             remoteSort : true,