From: Alan Knowles Date: Wed, 14 Nov 2012 06:06:02 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6689354a86bf53c8550ea60d94ad6853d954f60b Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 71501eb2..e0de878f 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -148,14 +148,14 @@ "|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", diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 1fb15d41..cf31e925 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -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,