diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-09-10 22:30:06 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-10 22:38:25 +0300 |
commit | 19c0bf2723bb0895159e4e4e0c6f47bc73157449 (patch) | |
tree | 531c438949872a934fc204793e795e7b4ea0931e /app/assets | |
parent | 4e54b82326e0a24c3b5196956f1e957b3f7c02e9 (diff) |
Simplify syntax highlighting of new notes
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 5 |
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() ### |