modx.grid.resource.active.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. MODx.grid.ActiveResources = function(config) {
  2. config = config || {};
  3. Ext.applyIf(config,{
  4. title: _('resources_active')
  5. ,id: 'modx-grid-resource-active'
  6. ,url: MODx.config.connector_url
  7. ,baseParams: {
  8. action: 'system/activeresource/getlist'
  9. }
  10. ,fields: ['id','pagetitle','username','editedon']
  11. ,columns: [{
  12. header: _('id')
  13. ,dataIndex: 'id'
  14. ,width: 50
  15. ,sortable: true
  16. },{
  17. header: _('page_title')
  18. ,dataIndex: 'pagetitle'
  19. ,width: 240
  20. ,sortable: true
  21. },{
  22. header: _('sysinfo_userid')
  23. ,dataIndex: 'username'
  24. ,width: 180
  25. ,sortable: true
  26. },{
  27. header: _('datechanged')
  28. ,dataIndex: 'editedon'
  29. ,width: 140
  30. ,sortable: true
  31. }]
  32. ,remoteSort: true
  33. ,paging: true
  34. });
  35. MODx.grid.ActiveResources.superclass.constructor.call(this,config);
  36. };
  37. Ext.extend(MODx.grid.ActiveResources,MODx.grid.Grid);
  38. Ext.reg('modx-grid-resource-active',MODx.grid.ActiveResources);