diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-07 23:44:45 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-07 23:44:45 -0400 |
commit | 71d1d9ad981750cac1e3f05d36c8efa8a1f1dded (patch) | |
tree | 85009287d2aa1eabead6d178e8c3c4428c08dcd6 /client/components/activities/comments.js | |
parent | 9ed0c3029f7a61a9e5cc31d52156055e08e53f9a (diff) | |
download | wekan-71d1d9ad981750cac1e3f05d36c8efa8a1f1dded.tar.gz wekan-71d1d9ad981750cac1e3f05d36c8efa8a1f1dded.tar.bz2 wekan-71d1d9ad981750cac1e3f05d36c8efa8a1f1dded.zip |
Bug fix: bug#2589 #2575, Add Features: allowing user to insert/paste link, image, video
Diffstat (limited to 'client/components/activities/comments.js')
-rw-r--r-- | client/components/activities/comments.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js index 8289b628..95084646 100644 --- a/client/components/activities/comments.js +++ b/client/components/activities/comments.js @@ -38,6 +38,7 @@ BlazeComponent.extendComponent({ resetCommentInput(input); Tracker.flush(); autosize.update(input); + input.trigger('submitted'); } evt.preventDefault(); }, @@ -54,7 +55,7 @@ BlazeComponent.extendComponent({ // XXX This should be a static method of the `commentForm` component function resetCommentInput(input) { - input.val('').trigger('input'); // without manually trigger, input event won't be fired + input.val(''); // without manually trigger, input event won't be fired input.blur(); commentFormIsOpen.set(false); } |