Commit eae39de1 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Eliminate #updateComment cfg from commments.Form.

parent cf3ba8cf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
                    });
                }
            },
+3 −6
Original line number Diff line number Diff line
@@ -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.
     */

    /**
@@ -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);