X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/examples/forum/classes/TopicContainer.js diff --git a/examples/forum/classes/TopicContainer.js b/examples/forum/classes/TopicContainer.js deleted file mode 100644 index 0d491af2..00000000 --- a/examples/forum/classes/TopicContainer.js +++ /dev/null @@ -1,59 +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', - minHeight: 150 - }, { - split: true, - height: 300, - region: 'south', - itemId: 'preview', - title: 'View Topic', - minHeight: 150, - 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