Pman.Dialog.CoreNotifyRecur.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 14 Nov 2012 06:06:02 +0000 (14:06 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Nov 2012 06:06:02 +0000 (14:06 +0800)
Pman.Dialog.CoreNotifyRecur.js

Pman.Dialog.CoreNotifyRecur.bjs
Pman.Dialog.CoreNotifyRecur.js

index 71501eb..e0de878 100644 (file)
                                                     "|xns": "Roo.form",
                                                     "items": [
                                                         {
+                                                            "listeners": {
+                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype = 'core_notify_recur';\n}\n"
+                                                            },
                                                             "*prop": "store",
-                                                            "xtype": "Store",
-                                                            "|xns": "Roo.data",
                                                             "remoteSort": true,
+                                                            "xtype": "Store",
                                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                                            "listeners": {
-                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
-                                                            },
+                                                            "|xns": "Roo.data",
                                                             "items": [
                                                                 {
                                                                     "*prop": "proxy",
index 1fb15d4..cf31e92 100644 (file)
@@ -315,14 +315,15 @@ Pman.Dialog.CoreNotifyRecur = {
                                         store : {
                                             xtype: 'Store',
                                             xns: Roo.data,
-                                            remoteSort : true,
-                                            sortInfo : { direction : 'ASC', field: 'id' },
                                             listeners : {
                                                 beforeload : function (_self, o){
                                                     o.params = o.params || {};
                                                     // set more here
+                                                    o.params.etype = 'core_notify_recur';
                                                 }
                                             },
+                                            remoteSort : true,
+                                            sortInfo : { direction : 'ASC', field: 'id' },
                                             proxy : {
                                                 xtype: 'HttpProxy',
                                                 xns: Roo.data,