summaryrefslogtreecommitdiffstats
path: root/client/components/activities/comments.js
diff options
context:
space:
mode:
authorNicoP-S <paetni1@gmail.com>2020-03-26 21:17:17 +0100
committerGitHub <noreply@github.com>2020-03-26 21:17:17 +0100
commit7fa9603f9d53594227258d76a78af4023dc325b0 (patch)
tree8b1a3bb7c8837c709ca21c7d22af59ff7433a83c /client/components/activities/comments.js
parent21b75edcdd8bc2fc79ae0a8c9c3691cc6f61c0ca (diff)
parent29d62440a5cf82b01de8183a384c6d7811abad81 (diff)
downloadwekan-7fa9603f9d53594227258d76a78af4023dc325b0.tar.gz
wekan-7fa9603f9d53594227258d76a78af4023dc325b0.tar.bz2
wekan-7fa9603f9d53594227258d76a78af4023dc325b0.zip
Merge pull request #1 from wekan/master
update
Diffstat (limited to 'client/components/activities/comments.js')
-rw-r--r--client/components/activities/comments.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js
index 50ca019b..e885459e 100644
--- a/client/components/activities/comments.js
+++ b/client/components/activities/comments.js
@@ -33,6 +33,13 @@ BlazeComponent.extendComponent({
cardId,
});
resetCommentInput(input);
+ // With Richer editor is in use, and comment is submitted,
+ // clear comment form with JQuery. Id #summernote is defined
+ // at client/components/main/editor.jade where it previously was
+ // id=id, now it is id="summernote".
+ if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === 'true') {
+ $('#summernote').summernote('code', '');
+ }
Tracker.flush();
autosize.update(input);
input.trigger('submitted');