diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-08-31 09:32:48 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2016-09-01 13:57:07 -0500 |
commit | e7b0334cfb13d42c20f704cd02eafc0f97c9d7ed (patch) | |
tree | df9598323b18289862d1bbd62e27a8ba7db6dea3 /app/assets | |
parent | 1c4e866348e0c782d2e5374209508785ac812c7a (diff) | |
download | gitlab-ce-e7b0334cfb13d42c20f704cd02eafc0f97c9d7ed.tar.gz |
Add textarea autoresize after comment
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index d0d5cad813a..ebe9ff2b8c4 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -331,7 +331,12 @@ form.find(".js-md-write-button").click(); form.find(".js-note-text").val("").trigger("input"); form.find(".js-note-text").data("autosave").reset(); - return this.updateTargetButtons(e); + + var event = document.createEvent('Event'); + event.initEvent('autosize:update', true, false); + form.find('.js-autosize')[0].dispatchEvent(event); + + this.updateTargetButtons(e); }; Notes.prototype.reenableTargetFormSubmitButton = function() { |