From 1caa7940dc7d9a30c70b4722c2a576abc0de2b60 Mon Sep 17 00:00:00 2001 From: nwb Date: Wed, 14 May 2014 15:08:06 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B5=84=E6=BA=90=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=80=85=E7=9A=84=E5=88=86=E7=B1=BB=E5=92=8Ctag=E7=BC=96?= =?UTF-8?q?=E8=BE=91=EF=BC=9B=202=E3=80=81=E7=BD=91=E7=AB=99=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=80=85=E5=AF=B9=E8=B5=84=E6=BA=90=E7=9A=84=E5=86=8D?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=92=8Ctag=E5=86=8D=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/_type_edit.html.erb | 2 +- config/routes.rb | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/attachments/_type_edit.html.erb b/app/views/attachments/_type_edit.html.erb index 79d0da0bb..5d9278823 100644 --- a/app/views/attachments/_type_edit.html.erb +++ b/app/views/attachments/_type_edit.html.erb @@ -3,7 +3,7 @@ <%= link_to(image_tag('edit/edit.png'), 'javascript:void(0);',:style=>"white-space:nowrap;", :id=>"edit_box"+attachment.id.to_s , :onclick =>"$('#put-tag-form-" +attachment.id.to_s+ "').show(); diff --git a/config/routes.rb b/config/routes.rb index c743c2151..b7e6dcebc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -457,11 +457,7 @@ RedmineApp::Application.routes.draw do 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] - end - end + resources :attachments, :only => [:show, :destroy] resources :groups do member do