From 922f1d5243b98d8a90c80336b4243f05edf7a5f8 2012-07-18 16:24:23 From: Jean-Philippe Lang Date: 2012-07-18 16:24:23 Subject: [PATCH] Removes a call to link_to_remote. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10024 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/watchers/_watchers.html.erb b/app/views/watchers/_watchers.html.erb index 29cf753..697d0bd 100644 --- a/app/views/watchers/_watchers.html.erb +++ b/app/views/watchers/_watchers.html.erb @@ -1,12 +1,9 @@ <% if User.current.allowed_to?(:add_issue_watchers, @project) %>
-<%= link_to_remote l(:button_add), - :url => {:controller => 'watchers', - :action => 'new', - :object_type => watched.class.name.underscore, - :object_id => watched}, - :method => 'get', - :before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %> +<%= link_to l(:button_add), + {:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched}, + :remote => true, + :method => 'get' %>
<% end %>