diff --git a/src/api/app/assets/javascripts/webui/comment.js b/src/api/app/assets/javascripts/webui/comment.js index b9a6aace6ee..9628708c572 100644 --- a/src/api/app/assets/javascripts/webui/comment.js +++ b/src/api/app/assets/javascripts/webui/comment.js @@ -19,11 +19,8 @@ function validateForm(e) { $(document).ready(function(){ // Disable submit button if textarea is empty and enable otherwise - $('.comments-list,.comment_new,.timeline,.diff').on('keyup', '.comment-field', function(e) { + $('.comments-list,.comment_new,.timeline,.diff').on('input', '.comment-field', function(e) { validateForm(e); - }); - - $('.comments-list,.comment_new,.timeline,.diff').on('keyup click', '.comment-field', function() { resizeTextarea(this); });