Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/www/manager/assets/modext/widgets/resource/ |
MODx.grid.ResourceSecurity = function(config) { config = config || {}; var ac = new Ext.ux.grid.CheckColumn({ header: _('access') ,dataIndex: 'access' ,width: 40 ,sortable: false ,hidden: MODx.perm.resourcegroup_resource_edit != 1 }); Ext.applyIf(config,{ id: 'modx-grid-resource-security' ,fields: ['id','name','access'] ,paging: false ,remoteSort: false ,autoHeight: true ,plugins: ac ,columns: [{ header: _('name') ,dataIndex: 'name' ,width: 200 ,sortable: true },ac] }); MODx.grid.ResourceSecurity.superclass.constructor.call(this,config); this.propRecord = Ext.data.Record.create(config.fields); this.on('rowclick',MODx.fireResourceFormChange); }; Ext.extend(MODx.grid.ResourceSecurity,MODx.grid.LocalGrid); Ext.reg('modx-grid-resource-security',MODx.grid.ResourceSecurity);