Loading template/app/controller/Comments.js +1 −2 Original line number Diff line number Diff line Loading @@ -453,8 +453,7 @@ Ext.define('Docs.controller.Comments', { new Docs.view.comments.Form({ renderTo: contentEl, user: currentUser, content: data.content, updateComment: true content: data.content }); } }, Loading template/app/view/comments/Form.js +3 −6 Original line number Diff line number Diff line Loading @@ -14,14 +14,11 @@ Ext.define('Docs.view.comments.Form', { * @cfg {Boolean} userSubscribed * True when user is subscribed to this thread. */ /** * @cfg {Boolean} updateComment * True to invoke the form in editing existing comment mode. * The default is to use new comment form. */ /** * @cfg {String} content * The existing content that we're about to edit. * Setting this will start the form in editing-existing-comment mode. * Without this a form for adding new comment is created. */ /** Loading Loading @@ -142,7 +139,7 @@ Ext.define('Docs.view.comments.Form', { render: function() { var cfg = Ext.apply({ definedIn: this.updateComment ? undefined : this.extractDefinedIn(this.renderTo), updateComment: this.updateComment, updateComment: this.content !== undefined, content: this.content, userSubscribed: this.userSubscribed }, this.user); Loading Loading
template/app/controller/Comments.js +1 −2 Original line number Diff line number Diff line Loading @@ -453,8 +453,7 @@ Ext.define('Docs.controller.Comments', { new Docs.view.comments.Form({ renderTo: contentEl, user: currentUser, content: data.content, updateComment: true content: data.content }); } }, Loading
template/app/view/comments/Form.js +3 −6 Original line number Diff line number Diff line Loading @@ -14,14 +14,11 @@ Ext.define('Docs.view.comments.Form', { * @cfg {Boolean} userSubscribed * True when user is subscribed to this thread. */ /** * @cfg {Boolean} updateComment * True to invoke the form in editing existing comment mode. * The default is to use new comment form. */ /** * @cfg {String} content * The existing content that we're about to edit. * Setting this will start the form in editing-existing-comment mode. * Without this a form for adding new comment is created. */ /** Loading Loading @@ -142,7 +139,7 @@ Ext.define('Docs.view.comments.Form', { render: function() { var cfg = Ext.apply({ definedIn: this.updateComment ? undefined : this.extractDefinedIn(this.renderTo), updateComment: this.updateComment, updateComment: this.content !== undefined, content: this.content, userSubscribed: this.userSubscribed }, this.user); Loading