update.js 832 B

12345678910111213141516171819202122232425
  1. /**
  2. * Loads the update weblink resource page
  3. *
  4. * @class MODx.page.UpdateWebLink
  5. * @extends MODx.Component
  6. * @param {Object} config An object of config properties
  7. * @xtype modx-page-weblink-update
  8. */
  9. MODx.page.UpdateWebLink = function(config) {
  10. config = config || {};
  11. Ext.applyIf(config,{
  12. components: [{
  13. xtype: 'modx-panel-weblink'
  14. ,renderTo: 'modx-panel-weblink-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. });
  22. MODx.page.UpdateWebLink.superclass.constructor.call(this,config);
  23. };
  24. Ext.extend(MODx.page.UpdateWebLink,MODx.page.UpdateResource);
  25. Ext.reg('modx-page-weblink-update',MODx.page.UpdateWebLink);