diff --git a/public/app/app.js b/public/app/app.js index bcdf172..b64bc35 100644 --- a/public/app/app.js +++ b/public/app/app.js @@ -3,5 +3,6 @@ ToolbarDemo = new Ext.Application({ launch: function() { this.views.viewport = new this.views.Viewport(); + this.views.homecard = this.views.viewport.getComponent('home'); } }); diff --git a/public/app/views/Viewport.js b/public/app/views/Viewport.js index 43a3fc8..5d5edc0 100644 --- a/public/app/views/Viewport.js +++ b/public/app/views/Viewport.js @@ -9,7 +9,7 @@ ToolbarDemo.views.Viewport = Ext.extend(Ext.TabPanel, { initComponent: function() { Ext.apply(this, { items: [ - { xtype: 'homecard' }, + { xtype: 'homecard', id: 'home' }, { xtype: 'searchcard' }, { xtype: 'actioncard' }, { xtype: 'settingscard' },