diff options
author | Sam Rose <samrose3@gmail.com> | 2017-05-18 11:10:59 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-18 11:10:59 +0300 |
commit | 1e0c6439ffc3b7d486a9fdd55392ac8f83fcb2b9 (patch) | |
tree | c35447829c5086696670ff906509ad3905d63b3b /app/assets/javascripts/notes.js | |
parent | 0b52808f0e885725a311b3ce8e45c66eb02ebce0 (diff) |
Disable reference prefixes in notes for Snippets
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 91d1afba7b6..766d71974d5 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -27,7 +27,7 @@ const normalizeNewlines = function(str) { Notes.interval = null; - function Notes(notes_url, note_ids, last_fetched_at, view) { + function Notes(notes_url, note_ids, last_fetched_at, view, enableGFM = true) { this.updateTargetButtons = this.updateTargetButtons.bind(this); this.updateComment = this.updateComment.bind(this); this.visibilityChange = this.visibilityChange.bind(this); @@ -50,6 +50,7 @@ const normalizeNewlines = function(str) { this.notes_url = notes_url; this.note_ids = note_ids; + this.enableGFM = enableGFM; // Used to keep track of updated notes while people are editing things this.updatedNotesTrackingMap = {}; this.last_fetched_at = last_fetched_at; @@ -523,7 +524,7 @@ const normalizeNewlines = function(str) { Notes.prototype.setupNoteForm = function(form) { var textarea, key; - new gl.GLForm(form); + new gl.GLForm(form, this.enableGFM); textarea = form.find(".js-note-text"); key = [ "Note", |