summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-10 15:30:06 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-10 15:38:25 -0400
commit19c0bf2723bb0895159e4e4e0c6f47bc73157449 (patch)
tree531c438949872a934fc204793e795e7b4ea0931e
parent4e54b82326e0a24c3b5196956f1e957b3f7c02e9 (diff)
downloadgitlab-ce-19c0bf2723bb0895159e4e4e0c6f47bc73157449.tar.gz
Simplify syntax highlighting of new notes
-rw-r--r--app/assets/javascripts/notes.js.coffee5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee
index b7f2c63c5a7..ce638c2641b 100644
--- a/app/assets/javascripts/notes.js.coffee
+++ b/app/assets/javascripts/notes.js.coffee
@@ -122,8 +122,9 @@ class @Notes
# or skip if rendered
if @isNewNote(note)
@note_ids.push(note.id)
- $('ul.main-notes-list').append(note.html)
- $('.js-syntax-highlight').syntaxHighlight()
+ $('ul.main-notes-list').
+ append(note.html).
+ syntaxHighlight()
@initTaskList()
###