Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
fe4c8072
Commit
fe4c8072
authored
Jan 30, 2019
by
bbaer
Browse files
fixed unknown user.
generates new event when new comment is added
parent
d90896df
Pipeline
#1446
passed with stage
in 2 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/CodeCorrection.js
View file @
fe4c8072
...
...
@@ -259,6 +259,7 @@ var QfqNS = QfqNS || {};
comments
.
commentController
=
new
n
.
CommentController
();
comments
.
commentController
.
buildContainer
(
$hook
);
comments
.
commentController
.
displayEditor
();
comments
.
commentController
.
setCurrentUser
(
this
.
currentUser
);
this
.
_setListeners
(
comments
.
commentController
);
this
.
annotations
.
push
(
comments
);
}
...
...
javascript/src/CommentController.js
View file @
fe4c8072
...
...
@@ -102,6 +102,7 @@ var QfqNS = QfqNS || {};
var
commentObject
=
new
n
.
Comment
(
comment
,
user
,
this
.
$container
);
commentObject
.
display
();
this
.
comments
.
push
(
commentObject
);
this
.
_changeHandler
(
"
new
"
);
this
.
updateHeight
();
return
this
.
comments
.
length
-
1
;
};
...
...
@@ -132,7 +133,7 @@ var QfqNS = QfqNS || {};
n
.
CommentController
.
prototype
.
buildCommentObject
=
function
(
text
)
{
var
comment
=
{};
comment
.
comment
=
text
;
comment
.
dateTime
=
new
Date
().
to
ISO
String
();
comment
.
dateTime
=
new
Date
().
to
Locale
String
(
'
de-CH
'
);
comment
.
uid
=
this
.
currentUser
.
uid
;
return
comment
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment