Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
dac5e6de
Commit
dac5e6de
authored
Sep 08, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After comment is added, button should go back to Close button.
parent
b712ded1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+6
-0
No files found.
app/assets/javascripts/notes.js.coffee
View file @
dac5e6de
...
...
@@ -26,6 +26,7 @@ class Notes
# Reopen and close actions for Issue/MR combined with note form submit
$
(
document
).
on
"click"
,
".js-note-target-reopen"
,
@
targetReopen
$
(
document
).
on
"click"
,
".js-note-target-close"
,
@
targetClose
$
(
document
).
on
"click"
,
".js-comment-button"
,
@
updateCloseButton
$
(
document
).
on
"keyup"
,
".js-note-text"
,
@
updateTargetButtons
# remove a note (in general)
...
...
@@ -496,6 +497,11 @@ class Notes
if
noteText
.
trim
().
length
>
0
form
.
submit
()
updateCloseButton
:
(
e
)
=>
textarea
=
$
(
e
.
target
)
form
=
textarea
.
parents
(
'form'
)
form
.
find
(
'.js-note-target-close'
).
text
(
'Close'
)
updateTargetButtons
:
(
e
)
=>
textarea
=
$
(
e
.
target
)
form
=
textarea
.
parents
(
'form'
)
...
...
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