diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index c71a1483..0d9a3a21 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -206,8 +206,8 @@ attachments_autocomplete_path(:format => 'js'), :remote => true, :method => :post) do %> - <%= label_tag(:atext_field_tagttach_search, "按关键字搜索:") %> - <%= (:attach_search) %> + <%= label_tag(:attach_search, "按关键字搜索:") %> + <%= text_field_tag(:attach_search) %> <%#= submit_tag("Search") %> <% end -%> <%= form_tag attach_relation_path(:format => 'js'), diff --git a/config/routes.rb b/config/routes.rb index c743c215..7d7cb2bb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -456,7 +456,6 @@ RedmineApp::Application.routes.draw do get 'attachments/autocomplete' match 'attachments/autocomplete', :to => 'attachments#autocomplete', via: [:post] post 'attachments/relationfile', to: 'attachments#add_exist_file_to_project', as: 'attach_relation' - post 'attachments/updateType/:attachmentid/:newtype' ,:to => 'attachments#updateType', :attachmentid => /\d+/, :newtype => /.*/ resources :attachments, :only => [:show, :destroy] do collection do match "updateType" , via: [:get, :post]