summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-05-24 14:05:49 +0530
committerkushalpandya <kushal@gitlab.com>2017-05-24 14:05:49 +0530
commitbd79662e9801940bb4c5d5647c5b0c302ba9744f (patch)
treedfbe59e94009729e40a6199b1028acefebc6d408
parent5b9cd10a7406f836da044b3e67dd055d4e696fe4 (diff)
downloadgitlab-ce-32702-fix-autocompletion-diff-notes.tar.gz
Use haml local directly in constructor32702-fix-autocompletion-diff-notes
-rw-r--r--app/views/shared/notes/_notes_with_form.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/notes/_notes_with_form.html.haml b/app/views/shared/notes/_notes_with_form.html.haml
index 0840019a6c8..785b1b22a49 100644
--- a/app/views/shared/notes/_notes_with_form.html.haml
+++ b/app/views/shared/notes/_notes_with_form.html.haml
@@ -23,5 +23,4 @@
to post a comment
:javascript
- var enableGfmAutoComplete = "#{autocomplete}" === "true";
- var notes = new Notes("#{notes_url}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}", enableGfmAutoComplete)
+ var notes = new Notes("#{notes_url}", #{@notes.map(&:id).to_json}, #{Time.now.to_i}, "#{diff_view}", #{autocomplete})