summaryrefslogtreecommitdiffstats
path: root/app/views/news/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/show.html.erb')
-rw-r--r--app/views/news/show.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 932bf0083..04ea54a0a 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -53,7 +53,12 @@
<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
<div class="box">
- <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
+ <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit',
+ :data => {
+ :auto_complete => true,
+ :issues_url => auto_complete_issues_path(:project_id => @project, :q => '')
+ }
+ %>
<%= wikitoolbar_for 'comment_comments', preview_news_path(:project_id => @project, :id => @news) %>
</div>
<p><%= submit_tag l(:button_add) %></p>