From 877ee8469089948d4fbca192301adafc1cb5900e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Jul 2021 13:23:09 +0800 Subject: [PATCH] fix sorting on group manager --- Pman.Dialog.BAdminStaffGroups.bjs | 2 +- Pman.Dialog.BAdminStaffGroups.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.BAdminStaffGroups.bjs b/Pman.Dialog.BAdminStaffGroups.bjs index cbfef75e..b5fa88aa 100644 --- a/Pman.Dialog.BAdminStaffGroups.bjs +++ b/Pman.Dialog.BAdminStaffGroups.bjs @@ -76,7 +76,7 @@ "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 options.params.limit = 200;\n options.params._is_in_group = _this.data.id;\n\n}" }, - "$ Object sortInfo" : "{ direction : 'ASC', field: 'id' }", + "$ Object sortInfo" : "{ direction : 'ASC', field: 'display_name' }", "xtype" : "Store", "boolean remoteSort" : true, "$ xns" : "Roo.data", diff --git a/Pman.Dialog.BAdminStaffGroups.js b/Pman.Dialog.BAdminStaffGroups.js index 45471991..126b0f05 100644 --- a/Pman.Dialog.BAdminStaffGroups.js +++ b/Pman.Dialog.BAdminStaffGroups.js @@ -158,7 +158,7 @@ Roo.apply(Pman.Dialog.BAdminStaffGroups.prototype, { store : { xtype : 'Store', remoteSort : true, - sortInfo : { direction : 'ASC', field: 'id' }, + sortInfo : { direction : 'ASC', field: 'display_name' }, listeners : { beforeload : function (_self, options) { -- 2.39.2