diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-18 16:24:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-18 16:24:23 +0000 |
commit | 922f1d5243b98d8a90c80336b4243f05edf7a5f8 (patch) | |
tree | 61496eb035aa5caf95ef7db5c9b273c586c50f4f /app | |
parent | ee3478f389b7ffa5ab4a7ec970b1d43b2959e747 (diff) | |
download | redmine-922f1d5243b98d8a90c80336b4243f05edf7a5f8.tar.gz redmine-922f1d5243b98d8a90c80336b4243f05edf7a5f8.zip |
Removes a call to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10024 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/watchers/_watchers.html.erb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/app/views/watchers/_watchers.html.erb b/app/views/watchers/_watchers.html.erb index 29cf7539b..697d0bd8e 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) %> <div class="contextual"> -<%= 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' %> </div> <% end %> |