X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/examples/forum/classes/TopicContainer.js?ds=sidebyside diff --git a/examples/forum/classes/TopicContainer.js b/examples/forum/classes/TopicContainer.js deleted file mode 100644 index 325a8e4d..00000000 --- a/examples/forum/classes/TopicContainer.js +++ /dev/null @@ -1,57 +0,0 @@ -Ext.define('ForumBrowser.TopicContainer', { - - extend: 'Ext.container.Container', - - alias: 'widget.topiccontainer', - - title: 'Loading...', - - initComponent: function(){ - Ext.apply(this, { - layout: 'border', - items: [{ - itemId: 'grid', - xtype: 'topicgrid', - region: 'center' - }, { - split: true, - height: 300, - region: 'south', - itemId: 'preview', - title: 'View Topic', - bodyPadding: 10, - tpl: '{title}

Post details here.' - }] - }); - this.callParent(); - }, - - afterLayout: function() { - this.callParent(); - - // IE6 likes to make the content disappear, hack around it... - if (Ext.isIE6) { - this.el.repaint(); - } - }, - - loadForum: function(rec) { - this.tab.setText(rec.get('text')); - this.child('#grid').loadForum(rec.getId()); - }, - - onSelect: function(rec) { - this.child('#preview').update({ - title: rec.get('title') - }); - }, - - togglePreview: function(show){ - var preview = this.child('#preview'); - if (show) { - preview.show(); - } else { - preview.hide(); - } - } -}); \ No newline at end of file