summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-14 08:44:22 +0100
committerPhil Hughes <me@iamphill.com>2016-07-14 08:44:22 +0100
commitde6ca8ef3a8ae6f783dc1b0684e7ad65be388564 (patch)
treec95e5ed70f75c20b2b58470afe0884bc4b1e33d3
parent08f14ef4488517bd7408eb69ec07f5e1a350d8fa (diff)
downloadgitlab-ce-wiki-gfm-autocomplete.tar.gz
Chnaged noteable class checkwiki-gfm-autocomplete
-rw-r--r--app/views/layouts/_init_auto_complete.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_init_auto_complete.html.haml b/app/views/layouts/_init_auto_complete.html.haml
index 79483d629d0..351100f3523 100644
--- a/app/views/layouts/_init_auto_complete.html.haml
+++ b/app/views/layouts/_init_auto_complete.html.haml
@@ -1,5 +1,5 @@
- project = @target_project || @project
-- noteable_class = @noteable.nil? ? nil : @noteable.class
+- noteable_class = @noteable.class if @noteable.present?
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_class, type_id: params[:id])}"