summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-09 21:49:48 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-09 21:49:48 +0000
commit5ca458864ed043642bc693de608ec8a0be40d1b1 (patch)
treecd4cf36ea0525a2e16fb4147d1c16d7fcb42989a /app/views/wiki
parent89739876d170875e1e12d84bfb1b43f342daf818 (diff)
downloadredmine-5ca458864ed043642bc693de608ec8a0be40d1b1.tar.gz
redmine-5ca458864ed043642bc693de608ec8a0be40d1b1.zip
Inline auto complete for issue (#) in wiki-edit fields (#31989).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18444 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/edit.html.erb9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 60a2f6596..0e1c23cc4 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -13,8 +13,13 @@
<%= error_messages_for 'content' %>
<div class="box tabular">
-<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
- :class => 'wiki-edit', :accesskey => accesskey(:edit) %>
+<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :accesskey => accesskey(:edit),
+ :class => 'wiki-edit',
+ :data => {
+ :auto_complete => true,
+ :issues_url => auto_complete_issues_path(:project_id => @project, :q => '')
+ }
+%>
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
<%= fields_for @page do |fp| %>