Simplify syntax highlighting of new notes

This commit is contained in:
Robert Speicher
2015-09-10 15:38:25 -04:00
parent 4e54b82326
commit 19c0bf2723
+3 -2
View File
@@ -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()
###