hybridauth.js 1005 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. var HybridAuth = function (config) {
  2. config = config || {};
  3. HybridAuth.superclass.constructor.call(this, config);
  4. };
  5. Ext.extend(HybridAuth, Ext.Component, {
  6. grid: {},
  7. combo: {},
  8. window: {},
  9. config: {},
  10. utils: {}
  11. });
  12. Ext.reg('HybridAuth', HybridAuth);
  13. HybridAuth = new HybridAuth();
  14. Ext.ComponentMgr.onAvailable("modx-user-tabs", function() {
  15. this.on("beforerender", function() {
  16. this.add({
  17. title: _("ha.services"),
  18. border: false,
  19. items: [{
  20. layout: "anchor",
  21. border: false,
  22. items: [{
  23. html: _("ha.services_tip"),
  24. border: false,
  25. bodyCssClass: "panel-desc"
  26. }, {
  27. xtype: "hybridauth-grid-services",
  28. anchor: "100%",
  29. cls: "main-wrapper",
  30. userId: HybridAuth.config.user_id
  31. }]
  32. }]
  33. });
  34. });
  35. });