versionx.class.js 1011 B

1234567891011121314151617181920212223242526272829
  1. var VersionX = function (config) {
  2. config = config || {};
  3. VersionX.superclass.constructor.call(this, config);
  4. };
  5. Ext.extend(VersionX, Ext.Component, {
  6. page: {}, window: {}, grid: {ResourcesDetail: {},TemplatesDetail:{}}, tree: {}, panel: {ResourcesDetail: {},TemplatesDetail:{}}, tabs: {}, combo: {},
  7. config: {
  8. connector_url: ''
  9. },
  10. inVersion: false
  11. });
  12. Ext.reg('versionx', VersionX);
  13. VersionX = new VersionX();
  14. VersionX.panel.VersionHeader = function (config) {
  15. config = config || {};
  16. config.title = config.title || 'New Section';
  17. Ext.apply(config, {
  18. border: false,
  19. forceLayout: true,
  20. width: '98%',
  21. items: [{
  22. html: '<h3 style="border-bottom: 1px solid; padding-top: 1em;">' + config.title + '</h3>'
  23. }]
  24. });
  25. VersionX.panel.VersionHeader.superclass.constructor.call(this, config);
  26. };
  27. Ext.extend(VersionX.panel.VersionHeader, MODx.Panel);
  28. Ext.reg('versionx-panel-versionheader', VersionX.panel.VersionHeader);