diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-12 15:52:45 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-15 12:15:56 +0100 |
commit | b5b5b4af0c390a9246e0ef6051b95af1c5e40297 (patch) | |
tree | fec0ebf3e71492921c85ea81aacb9f6130525f30 /app/assets/javascripts/dropzone_input.js | |
parent | b1affe07a1ff0b7f10cdc94b91dfea97d92b015c (diff) | |
download | gitlab-ce-b5b5b4af0c390a9246e0ef6051b95af1c5e40297.tar.gz |
Added description field to inline edit form
[ci skip]
Diffstat (limited to 'app/assets/javascripts/dropzone_input.js')
-rw-r--r-- | app/assets/javascripts/dropzone_input.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/dropzone_input.js b/app/assets/javascripts/dropzone_input.js index b3a76fbb43e..3843539a3b8 100644 --- a/app/assets/javascripts/dropzone_input.js +++ b/app/assets/javascripts/dropzone_input.js @@ -142,7 +142,8 @@ window.DropzoneInput = (function() { $(child).val(beforeSelection + formattedText + afterSelection); textarea.setSelectionRange(caretStart + formattedText.length, caretEnd + formattedText.length); textarea.style.height = `${textarea.scrollHeight}px`; - return form_textarea.trigger("input"); + form_textarea.trigger("input"); + form_textarea.get(0).dispatchEvent(new Event('input')); }; getFilename = function(e) { var value; |