mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 10:44:20 +01:00
Bug fix: bug#2589 #2575, Add Features: allowing user to insert/paste link, image, video
This commit is contained in:
parent
9ed0c3029f
commit
71d1d9ad98
4 changed files with 186 additions and 110 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue