Commit 6f90b060 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

No more accessing OverviewToolbar by ID.

Instead referencing it through this.toolbar inside OverviewPanel.
parent 129e0ad1
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ Ext.define('Docs.OverviewPanel', {

    initComponent: function() {
        this.dockedItems = [
            Ext.create('Docs.OverviewToolbar', {
            this.toolbar = Ext.create('Docs.OverviewToolbar', {
              docClass: this.docClass
            })
        ];
@@ -60,10 +60,12 @@ Ext.define('Docs.OverviewPanel', {
    },

    load: function(docClass) {
      this.removeDocked(Ext.getCmp('overview-toolbar'), true);
      this.addDocked(Ext.create('Docs.OverviewToolbar', {
      this.removeDocked(this.toolbar, true);
      this.toolbar = Ext.create('Docs.OverviewToolbar', {
        docClass: docClass
      }));
      });
      this.addDocked(this.toolbar);

      this.update(docClass.doc);
    }
});
+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
Ext.define('Docs.OverviewToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    dock: 'top',
    id: 'overview-toolbar',
    cls: 'member-links',
    padding: '3 5',