Removes a call to link_to_remote.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10024 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-18 16:24:23 +00:00
parent ee3478f389
commit 922f1d5243

View File

@ -1,12 +1,9 @@
<% if User.current.allowed_to?(:add_issue_watchers, @project) %> <% if User.current.allowed_to?(:add_issue_watchers, @project) %>
<div class="contextual"> <div class="contextual">
<%= link_to_remote l(:button_add), <%= link_to l(:button_add),
:url => {:controller => 'watchers', {:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched},
:action => 'new', :remote => true,
:object_type => watched.class.name.underscore, :method => 'get' %>
:object_id => watched},
:method => 'get',
:before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %>
</div> </div>
<% end %> <% end %>