##// END OF EJS Templates
Removes a call to link_to_remote....
Jean-Philippe Lang -
r9841:922f1d5243b9
parent child
Show More
@@ -1,12 +1,9
1 <% if User.current.allowed_to?(:add_issue_watchers, @project) %>
1 <% if User.current.allowed_to?(:add_issue_watchers, @project) %>
2 <div class="contextual">
2 <div class="contextual">
3 <%= link_to_remote l(:button_add),
3 <%= link_to l(:button_add),
4 :url => {:controller => 'watchers',
4 {:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched},
5 :action => 'new',
5 :remote => true,
6 :object_type => watched.class.name.underscore,
6 :method => 'get' %>
7 :object_id => watched},
8 :method => 'get',
9 :before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %>
10 </div>
7 </div>
11 <% end %>
8 <% end %>
12
9
General Comments 0
You need to be logged in to leave comments. Login now