summaryrefslogtreecommitdiffstats
path: root/app/views/layouts
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-21 07:52:16 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-21 07:52:16 +0000
commitf5bbb0317ac874a0184c93f039146caf4ddb7f7c (patch)
tree5106451b4274b1933a56f3c11b1c524efaf393a8 /app/views/layouts
parent7df0230d673e8075aafad51f0ac7913fcc90d996 (diff)
downloadredmine-f5bbb0317ac874a0184c93f039146caf4ddb7f7c.tar.gz
redmine-f5bbb0317ac874a0184c93f039146caf4ddb7f7c.zip
Auto-complete issues #id in the search form (#32052).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/base.html.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index 1ed1032e9..42819c1fb 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -80,7 +80,11 @@
<label for='q'>
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project, :scope => default_search_project_scope}, :accesskey => accesskey(:search) %>:
</label>
- <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
+ <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search),
+ :data => {
+ :auto_complete => true,
+ :issues_url => auto_complete_issues_path(:q => '')
+ } %>
<% end %>
<%= render_project_jump_box %>
</div>