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
dfdf1891
Commit
dfdf1891
authored
Jan 20, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation of methods chaining in Coffee
[ci skip]
parent
8a829c97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+8
-8
No files found.
app/assets/javascripts/notes.js.coffee
View file @
dfdf1891
...
...
@@ -131,8 +131,8 @@ class @Notes
@
note_ids
.
push
(
note
.
id
)
$
(
'ul.main-notes-list'
)
.
append
(
note
.
html
)
.
syntaxHighlight
()
.
append
(
note
.
html
)
.
syntaxHighlight
()
@
initTaskList
()
@
updateNotesCount
(
1
)
...
...
@@ -178,8 +178,8 @@ class @Notes
# Init discussion on 'Discussion' page if it is merge request page
if
$
(
'body'
).
attr
(
'data-page'
).
indexOf
(
'projects:merge_request'
)
is
0
$
(
'ul.main-notes-list'
)
.
append
(
note
.
discussion_with_diff_html
)
.
syntaxHighlight
()
.
append
(
note
.
discussion_with_diff_html
)
.
syntaxHighlight
()
else
# append new note to all matching discussions
discussionContainer
.
append
note_html
...
...
@@ -367,8 +367,8 @@ class @Notes
###
removeNote
:
(
e
)
=>
noteId
=
$
(
e
.
currentTarget
)
.
closest
(
".note"
)
.
attr
(
"id"
)
.
closest
(
".note"
)
.
attr
(
"id"
)
# A same note appears in the "Discussion" and in the "Changes" tab, we have
# to remove all. Using $(".note[id='noteId']") ensure we get all the notes,
...
...
@@ -561,5 +561,5 @@ class @Notes
updateTaskList
:
->
$
(
'form'
,
this
).
submit
()
updateNotesCount
:
(
incrementStep
)
->
@
notesCountBadge
.
text
parseInt
(
@
notesCountBadge
.
text
())
+
incrementStep
updateNotesCount
:
(
updateCount
)
->
@
notesCountBadge
.
text
(
parseInt
(
@
notesCountBadge
.
text
())
+
updateCount
)
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