From: Alan Date: Tue, 31 Oct 2023 07:26:09 +0000 (+0800) Subject: default view should be pending X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=6ea08b963bfe23c3c179244adfae5e6f45e5928f default view should be pending --- 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; }