From 6ea08b963bfe23c3c179244adfae5e6f45e5928f Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 31 Oct 2023 15:26:09 +0800 Subject: [PATCH] default view should be pending --- Pman.Tab.AdminNotify.bjs | 3 ++- Pman.Tab.AdminNotify.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index d71a2fd..6637d64 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -213,7 +213,8 @@ " options.params._evtype_align = 1;", " ", " if (!_this.toggleBtn.pressed) {", - " options.params['event_id'] = 0;", + " options.params.event_id = 0;", + " options.params['query[status]'] = 'PENDING';", " } else {", " options.params['!event_id'] = 0;", " }", diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index 5326e59..d360f32 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -380,7 +380,8 @@ Pman.Tab.AdminNotify = new Roo.XComponent({ options.params._evtype_align = 1; if (!_this.toggleBtn.pressed) { - options.params['event_id'] = 0; + options.params.event_id = 0; + options.params['query[status]'] = 'PENDING'; } else { options.params['!event_id'] = 0; } -- 2.39.2