组织资源发送后,发送次数动态增加

This commit is contained in:
ouyangxuhua 2016-03-07 12:57:24 +08:00
parent 319f286a65
commit a0363b5511
3 changed files with 10 additions and 2 deletions

View File

@ -1837,6 +1837,7 @@ class UsersController < ApplicationController
Project.find(project_id).project_score.attach_num + 1)
end
end
@ori = ori
end
elsif params[:send_ids].present?
send_ids = params[:send_ids].split(" ")
@ -1941,6 +1942,7 @@ class UsersController < ApplicationController
end
end
end
@ori = ori
elsif params[:send_ids].present?
send_ids = params[:send_ids].split(" ")
subfield_id = params[:subfield]

View File

@ -4,7 +4,10 @@ $("#resources_list").html('<%= escape_javascript( render :partial => 'resources_
$("#res_count").html(0);
$("#checkboxAll").attr('checked',false);
$("#res_all_count").html(<%= @atta_count%>);
<% if @ori.present? and @ori.quotes.present? %>
$("#reference_number_<%= @ori.id %>").text("<%= @ori.quotes %>");
<% end %>
hideModal();
alert("发送成功")
alert("发送成功");
<% else%>
<% end %>

View File

@ -4,7 +4,10 @@ $("#resources_list").html('<%= escape_javascript( render :partial => 'resources_
$("#res_count").html(0);
$("#checkboxAll").attr('checked',false);
$("#res_all_count").html(<%= @atta_count%>);
<% if @ori and @ori.quotes.present? %>
$("#reference_number_<%= @ori.id %>").text("<%= @ori.quotes %>");
<% end %>
hideModal();
alert("发送成功")
alert("发送成功");
<% else%>
<% end %>