修正BUG
This commit is contained in:
parent
c0c184d8bf
commit
4235ca8984
|
@ -206,8 +206,8 @@
|
||||||
attachments_autocomplete_path(:format => 'js'),
|
attachments_autocomplete_path(:format => 'js'),
|
||||||
:remote => true,
|
:remote => true,
|
||||||
:method => :post) do %>
|
:method => :post) do %>
|
||||||
<%= label_tag(:atext_field_tagttach_search, "按关键字搜索:") %>
|
<%= label_tag(:attach_search, "按关键字搜索:") %>
|
||||||
<%= (:attach_search) %>
|
<%= text_field_tag(:attach_search) %>
|
||||||
<%#= submit_tag("Search") %>
|
<%#= submit_tag("Search") %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<%= form_tag attach_relation_path(:format => 'js'),
|
<%= form_tag attach_relation_path(:format => 'js'),
|
||||||
|
|
|
@ -456,7 +456,6 @@ RedmineApp::Application.routes.draw do
|
||||||
get 'attachments/autocomplete'
|
get 'attachments/autocomplete'
|
||||||
match 'attachments/autocomplete', :to => 'attachments#autocomplete', via: [:post]
|
match 'attachments/autocomplete', :to => 'attachments#autocomplete', via: [:post]
|
||||||
post 'attachments/relationfile', to: 'attachments#add_exist_file_to_project', as: 'attach_relation'
|
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
|
resources :attachments, :only => [:show, :destroy] do
|
||||||
collection do
|
collection do
|
||||||
match "updateType" , via: [:get, :post]
|
match "updateType" , via: [:get, :post]
|
||||||
|
|
Loading…
Reference in New Issue