update.js 864 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Loads the update static resource page
  3. *
  4. * @class MODx.page.UpdateStatic
  5. * @extends MODx.Component
  6. * @param {Object} config An object of config properties
  7. * @xtype modx-page-static-update
  8. */
  9. MODx.page.UpdateStatic = function(config) {
  10. config = config || {};
  11. Ext.applyIf(config,{
  12. components: [{
  13. xtype: 'modx-panel-static'
  14. ,renderTo: 'modx-panel-static-div'
  15. ,resource: config.resource
  16. ,record: config.record || {}
  17. ,publish_document: config.publish_document
  18. ,show_tvs: config.show_tvs
  19. ,url: config.url
  20. }]
  21. ,buttons: this.getButtons(config)
  22. });
  23. MODx.page.UpdateStatic.superclass.constructor.call(this,config);
  24. };
  25. Ext.extend(MODx.page.UpdateStatic,MODx.page.UpdateResource);
  26. Ext.reg('modx-page-static-update',MODx.page.UpdateStatic);