Changed the create.rjs so it will replace the td on the admin and project panel.
* td's are now id'ed like rate_project_user #1923
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
element = 'rate_' + @rate.project_id.to_s
|
||||
element = 'rate_' + @rate.project_id.to_s + '_' + @rate.user_id.to_s
|
||||
page.replace_html element, "<strong>#{link_to number_to_currency(@rate.amount), { :action => 'edit', :id => @rate.user, :tab => 'rates'} }</strong>"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<%= link_to l(:button_delete), {:action => 'destroy_membership', :id => @user, :membership_id => membership }, :method => :post, :class => 'icon icon-del' %>
|
||||
</td>
|
||||
<%# TODO: Hook %>
|
||||
<td id="rate_<%= membership.project.id %>">
|
||||
<td id="rate_<%= membership.project.id %>_<%= membership.user.id %>">
|
||||
<% rate = Rate.for(@user, membership.project) %>
|
||||
|
||||
<% if rate.nil? || rate.default? %>
|
||||
|
||||
Reference in New Issue
Block a user