Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index b87cdf3..7990061 100644 (file)
@@ -31,7 +31,7 @@
                     "items": [
                         {
                             "listeners": {
-                                "beforeload": "function (_self, options)\n{\n    if (!_this.toggleBtn.pressed) {\n        options.params['event_id'] = 0;\n    }\n}"
+                                "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}"
                             },
                             "*prop": "dataSource",
                             "remoteSort": true,
@@ -73,7 +73,8 @@
                             "items": [
                                 {
                                     "listeners": {
-                                        "select": "function (combo, record, index)\n{\n   (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
+                                        "select": "function (combo, record, index)\n{\n   (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
+                                        "render": "function (_self)\n{\n   _this.personCombo = _self;\n}"
                                     },
                                     "allowBlank": true,
                                     "displayField": "person_id_name",