diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-20 12:53:35 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-20 12:53:35 -0400 |
commit | 8e40d594a2e53585c2ed06a2c2616fcd24c0eae8 (patch) | |
tree | fd4fbcb518d127ec3e6987162f1eaf8b1e76be40 | |
parent | 76a758234ac29ba2c859cb50fec6e6374e4a8742 (diff) | |
download | gitlab-ce-8e40d594a2e53585c2ed06a2c2616fcd24c0eae8.tar.gz |
Work around a Chrome 43 bug preventing note editingrs-issue-1568
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index c25b1ddb066..b87659d6222 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -312,6 +312,13 @@ class @Notes form.show() textarea = form.find("textarea") textarea.focus() + + # HACK (rspeicher): Work around a Chrome 43 bug(?). + # The textarea has the correct value, Chrome just won't show it unless we + # modify it, so let's add a newline! + textarea.val (_, value) -> + "#{value}\n" + disableButtonIfEmptyField textarea, form.find(".js-comment-button") ### |