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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
741cf430
Commit
741cf430
authored
Mar 03, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Mar 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correcly updates the status of the comment buttons on reload
Closes #5534
parent
e1bc8087
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+3
-3
No files found.
app/assets/javascripts/notes.js.coffee
View file @
741cf430
...
@@ -17,10 +17,10 @@ class @Notes
...
@@ -17,10 +17,10 @@ class @Notes
@
noteable_url
=
document
.
URL
@
noteable_url
=
document
.
URL
@
notesCountBadge
||=
$
(
".issuable-details"
).
find
(
".notes-tab .badge"
)
@
notesCountBadge
||=
$
(
".issuable-details"
).
find
(
".notes-tab .badge"
)
@
initRefresh
()
@
setupMainTargetNoteForm
()
@
cleanBinding
()
@
cleanBinding
()
@
addBinding
()
@
addBinding
()
@
initRefresh
()
@
setupMainTargetNoteForm
()
@
initTaskList
()
@
initTaskList
()
addBinding
:
->
addBinding
:
->
...
@@ -37,7 +37,7 @@ class @Notes
...
@@ -37,7 +37,7 @@ class @Notes
# Reopen and close actions for Issue/MR combined with note form submit
# Reopen and close actions for Issue/MR combined with note form submit
$
(
document
).
on
"click"
,
".js-comment-button"
,
@
updateCloseButton
$
(
document
).
on
"click"
,
".js-comment-button"
,
@
updateCloseButton
$
(
document
).
on
"keyup"
,
".js-note-text"
,
@
updateTargetButtons
$
(
document
).
on
"keyup
input
"
,
".js-note-text"
,
@
updateTargetButtons
# remove a note (in general)
# remove a note (in general)
$
(
document
).
on
"click"
,
".js-note-delete"
,
@
removeNote
$
(
document
).
on
"click"
,
".js-note-delete"
,
@
removeNote
...
...
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