Loading template/app/controller/Comments.js +4 −2 Original line number Diff line number Diff line Loading @@ -65,8 +65,10 @@ Ext.define('Docs.controller.Comments', { }); this.getController('Guides').on({ showGuide: function(guide) { showGuide: function(guide, opts) { if (opts.reRendered) { this.renderGuideCommentContainers(guide); } }, scope: this }); Loading template/app/controller/Guides.js +4 −1 Original line number Diff line number Diff line Loading @@ -128,6 +128,8 @@ Ext.define('Docs.controller.Guides', { * @param {Boolean} name Name of the guide */ showGuide: function(json, url, name) { var reRendered = false; if (json === "in-progress") { return; } Loading @@ -137,10 +139,11 @@ Ext.define('Docs.controller.Guides', { name: name, content: json.guide }); reRendered = true; } this.activeUrl = url; this.scrollContent(); this.fireEvent('showGuide', name); this.fireEvent('showGuide', name, { reRendered: reRendered }); this.getTree().selectUrl(url); }, Loading Loading
template/app/controller/Comments.js +4 −2 Original line number Diff line number Diff line Loading @@ -65,8 +65,10 @@ Ext.define('Docs.controller.Comments', { }); this.getController('Guides').on({ showGuide: function(guide) { showGuide: function(guide, opts) { if (opts.reRendered) { this.renderGuideCommentContainers(guide); } }, scope: this }); Loading
template/app/controller/Guides.js +4 −1 Original line number Diff line number Diff line Loading @@ -128,6 +128,8 @@ Ext.define('Docs.controller.Guides', { * @param {Boolean} name Name of the guide */ showGuide: function(json, url, name) { var reRendered = false; if (json === "in-progress") { return; } Loading @@ -137,10 +139,11 @@ Ext.define('Docs.controller.Guides', { name: name, content: json.guide }); reRendered = true; } this.activeUrl = url; this.scrollContent(); this.fireEvent('showGuide', name); this.fireEvent('showGuide', name, { reRendered: reRendered }); this.getTree().selectUrl(url); }, Loading