default view should be pending
authorAlan <alan@roojs.com>
Tue, 31 Oct 2023 07:26:09 +0000 (15:26 +0800)
committerAlan <alan@roojs.com>
Tue, 31 Oct 2023 07:26:09 +0000 (15:26 +0800)
Pman.Tab.AdminNotify.bjs
Pman.Tab.AdminNotify.js

index d71a2fd..6637d64 100644 (file)
              "    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;",
              "    }",
index 5326e59..d360f32 100644 (file)
@@ -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;
               }