MODx.grid.ResourceSecurity=function(A){A=A||{};var B=new Ext.ux.grid.CheckColumn({header:_("access"),dataIndex:"access",width:40,sortable:false});Ext.applyIf(A,{id:"modx-grid-resource-security",url:MODx.config.connectors_url+"resource/resourcegroup.php",baseParams:{action:"getList",resource:A.resource},saveParams:{resource:A.resource},fields:["id","name","access","menu"],paging:true,remoteSort:true,plugins:B,columns:[{header:_("name"),dataIndex:"name",width:200,sortable:true},B]});MODx.grid.ResourceSecurity.superclass.constructor.call(this,A);this.on("rowclick",MODx.fireResourceFormChange);};Ext.extend(MODx.grid.ResourceSecurity,MODx.grid.Grid);Ext.reg("modx-grid-resource-security",MODx.grid.ResourceSecurity);