From 5eb7869aa47eda34917e75a6c454d392291e19df Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 11 Feb 2015 14:20:29 +0800 Subject: [PATCH] Pman.Tab.AdminNotify.bjs Pman.Tab.AdminNotify.js --- Pman.Tab.AdminNotify.bjs | 2 +- Pman.Tab.AdminNotify.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index 649a46b..9609d80 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -31,7 +31,7 @@ "items" : [ { "listeners" : { - "beforeload" : "function (_self, options)\n{\n if (!_this.toggleBtn.pressed) {\n options.params['event_id'] = 0;\n }\n if (!_this.personCombo) {\n return false;\n }\n var p = _this.personCombo.getValue();\n if (p*1) { \n options.params.person_id = p;\n }\n \n}" + "beforeload" : "function (_self, options)\n{\n options.params = options.params || {};\n \n options.params._evtype_align = 1;\n \n if (!_this.toggleBtn.pressed) {\n options.params['event_id'] = 0;\n }\n if (!_this.personCombo) {\n return false;\n }\n var p = _this.personCombo.getValue();\n if (p*1) { \n options.params.person_id = p;\n }\n \n}" }, "xtype" : "Store", "remoteSort" : true, diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index 5c532e8..49cc613 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -186,6 +186,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({ listeners : { beforeload : function (_self, options) { + options.params = options.params || {}; + + options.params._evtype_align = 1; + if (!_this.toggleBtn.pressed) { options.params['event_id'] = 0; } -- 2.39.2