BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cbcc5f85
Commit
cbcc5f85
authored
May 21, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround that doesn't add unwanted newline.
parent
8e40d594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
CHANGELOG
CHANGELOG
+1
-0
notes.js.coffee
app/assets/javascripts/notes.js.coffee
+5
-4
No files found.
CHANGELOG
View file @
cbcc5f85
...
...
@@ -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 @
cbcc5f85
...
...
@@ -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