Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
aa78e254214c
Commit
cbcc5f85
authored
May 21, 2015
by
Douwe Maan
Browse files
Workaround that doesn't add unwanted newline.
parent
5da9daa9512a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
aa78e254
...
...
@@ -4,6 +4,7 @@ v 7.12.0 (unreleased)
- Allow to configure location of the `.gitlab_shell_secret` file. (Jakub Jirutka)
v 7.11.0 (unreleased)
- Get editing comments to work in Chrome 43 again.
- Fix broken view when viewing history of a file that includes a path that used to be another file (Stan Hu)
- Don't show duplicate deploy keys
- Fix commit time being displayed in the wrong timezone in some cases (Hannes Rosenögger)
...
...
app/assets/javascripts/notes.js.coffee
View file @
aa78e254
...
...
@@ -313,11 +313,12 @@ class @Notes
textarea
=
form
.
find
(
"textarea"
)
textarea
.
focus
()
# HACK (rspeicher): Work around a Chrome 43 bug(?).
# HACK (rspeicher
/DouweM
): 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
"
# modify it, so let's clear it and re-set it!
value
=
textarea
.
val
()
textarea
.
val
""
textarea
.
val
value
disableButtonIfEmptyField
textarea
,
form
.
find
(
".js-comment-button"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment