index.js 631 B

123456789101112131415161718192021222324
  1. /**
  2. * Loads the sources page
  3. *
  4. * @class MODx.page.Sources
  5. * @extends MODx.Component
  6. * @param {Object} config An object of config properties
  7. * @xtype modx-page-sources
  8. */
  9. MODx.page.Sources = function(config) {
  10. config = config || {};
  11. Ext.applyIf(config,{
  12. components: [{
  13. xtype: 'modx-panel-sources'
  14. }]
  15. ,buttons: [{
  16. text: _('help_ex')
  17. ,id: 'modx-abtn-help'
  18. ,handler: MODx.loadHelpPane
  19. }]
  20. });
  21. MODx.page.Sources.superclass.constructor.call(this,config);
  22. };
  23. Ext.extend(MODx.page.Sources,MODx.Component);
  24. Ext.reg('modx-page-sources',MODx.page.Sources);