Pman.Dialog.BAdminStaffGroups.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 03:06:17 +0000 (11:06 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 03:06:17 +0000 (11:06 +0800)
Pman.Dialog.BAdminStaffGroups.js

Pman.Dialog.BAdminStaffGroups.bjs
Pman.Dialog.BAdminStaffGroups.js

index 5997ce3..9a4506b 100644 (file)
@@ -76,7 +76,7 @@
           {
            "listeners" : {
             "update" : "function (_self, record, operation)\n{\n    if (operation != 'commit') {\n        return;\n    }\n    \n    var params = {\n        user_ids : _this.data.id,\n        _action : (record.data.is_in_group * 1 == 0) ? 'sub' : 'add',\n        group_id : record.data.id\n    };\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Core_group',\n        method : 'POST',\n        params : params,\n        success : function() { \n            //_this.option_grid.ds.load({});\n        }\n  });\n}",
-            "beforeload" : "function (_self, options)\n{ \n    options.params = options.params || {};\n    \n    if(_this.data.id * 1 < 1){\n        _this.option_grid.el.mask('Please save the member first');\n        this.removeAll();\n        return false;\n    }\n    \n    options.params._is_in_group = _this.data.id;\n\n}"
+            "beforeload" : "function (_self, options)\n{ \n    options.params = options.params || {};\n    \n    if(_this.data.id * 1 < 1){\n        _this.option_grid.el.mask('Please save the member first');\n        this.removeAll();\n        return false;\n    }\n    options.params.limit = 200;\n    options.params._is_in_group = _this.data.id;\n\n}"
            },
            "$ Object sortInfo" : "{ direction : 'ASC', field: 'id' }",
            "xtype" : "Store",
index a906ecb..109b6cf 100644 (file)
@@ -221,7 +221,7 @@ Roo.apply(Pman.Dialog.BAdminStaffGroups.prototype, {
                     this.removeAll();
                     return false;
                 }
-                
+                options.params.limit = 200;
                 options.params._is_in_group = _this.data.id;
             
             },