Commit e622eacf authored by bbaer's avatar bbaer
Browse files

fixed unknown user.

generates new event when new comment is added
parent fe4c8072
......@@ -56,9 +56,8 @@ var QfqNS = QfqNS || {};
text: this.$parent.data("text")
};
this.language = this.$parent.data("highlight") || "typo3conf/ext/qfq/Resources/Public/Json/javascript.json";
console.log(this.data);
this.currentUser = $container.data("uid");
console.log(this.currentUser);
var that = this;
if (this.$target.val()) {
var jImport = $.parseJSON(this.$target.val());
......@@ -258,8 +257,8 @@ var QfqNS = QfqNS || {};
comments.lineNumber = lineCount;
comments.commentController = new n.CommentController();
comments.commentController.buildContainer($hook);
comments.commentController.displayEditor();
comments.commentController.setCurrentUser(this.currentUser);
comments.commentController.displayEditor();
this._setListeners(comments.commentController);
this.annotations.push(comments);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment