Loading template/app/view/comments/LargeExpander.js +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ Ext.define('Docs.view.comments.LargeExpander', { var expanderWrap = Ext.DomHelper.append(this.el, this.html, true).down("div"); this.expander = new Docs.view.comments.Expander({ count: Docs.CommentCounts.get("class", this.name), count: Docs.CommentCounts.get(this.type, this.name), type: this.type, className: this.name, renderTo: expanderWrap Loading template/app/view/guides/Container.js +16 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,10 @@ Ext.define('Docs.view.guides.Container', { alias: 'widget.guidecontainer', componentCls: 'guide-container', mixins: ['Docs.view.Scrolling'], requires: [ "Docs.CommentCounts", "Docs.view.comments.LargeExpander" ], initComponent: function() { this.addEvents( Loading Loading @@ -38,6 +42,8 @@ Ext.define('Docs.view.guides.Container', { * @param {Object} guide */ load: function(guide) { this.guide = guide; this.tpl = this.tpl || new Ext.XTemplate( Docs.data.showPrintButton ? '<a class="print guide" href="?print=/guide/{name}" target="_blank">Print</a>' : '', '{content}' Loading @@ -46,6 +52,16 @@ Ext.define('Docs.view.guides.Container', { this.update(this.tpl.apply(guide)); Docs.Syntax.highlight(this.getEl()); Docs.CommentCounts.afterLoaded(this.initComments, this); this.fireEvent('afterload'); }, initComments: function() { new Docs.view.comments.LargeExpander({ type: "guide", name: this.guide.name, el: this.getEl().down(".x-panel-body") }); } }); Loading
template/app/view/comments/LargeExpander.js +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ Ext.define('Docs.view.comments.LargeExpander', { var expanderWrap = Ext.DomHelper.append(this.el, this.html, true).down("div"); this.expander = new Docs.view.comments.Expander({ count: Docs.CommentCounts.get("class", this.name), count: Docs.CommentCounts.get(this.type, this.name), type: this.type, className: this.name, renderTo: expanderWrap Loading
template/app/view/guides/Container.js +16 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,10 @@ Ext.define('Docs.view.guides.Container', { alias: 'widget.guidecontainer', componentCls: 'guide-container', mixins: ['Docs.view.Scrolling'], requires: [ "Docs.CommentCounts", "Docs.view.comments.LargeExpander" ], initComponent: function() { this.addEvents( Loading Loading @@ -38,6 +42,8 @@ Ext.define('Docs.view.guides.Container', { * @param {Object} guide */ load: function(guide) { this.guide = guide; this.tpl = this.tpl || new Ext.XTemplate( Docs.data.showPrintButton ? '<a class="print guide" href="?print=/guide/{name}" target="_blank">Print</a>' : '', '{content}' Loading @@ -46,6 +52,16 @@ Ext.define('Docs.view.guides.Container', { this.update(this.tpl.apply(guide)); Docs.Syntax.highlight(this.getEl()); Docs.CommentCounts.afterLoaded(this.initComments, this); this.fireEvent('afterload'); }, initComments: function() { new Docs.view.comments.LargeExpander({ type: "guide", name: this.guide.name, el: this.getEl().down(".x-panel-body") }); } });