]> source.dussan.org Git - redmine.git/commitdiff
Removes a call to link_to_remote.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jul 2012 16:24:23 +0000 (16:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jul 2012 16:24:23 +0000 (16:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10024 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/watchers/_watchers.html.erb

index 29cf7539bda9a34ef80701606927021620944962..697d0bd8e2de4d2356bcfc9ecf9e877352a9c249 100644 (file)
@@ -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 %>