From de6ca8ef3a8ae6f783dc1b0684e7ad65be388564 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 14 Jul 2016 08:44:22 +0100 Subject: Chnaged noteable class check --- app/views/layouts/_init_auto_complete.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])}" -- cgit v1.2.1