2015-08-27 11:02:20 +08:00
|
|
|
<% if @flag == true%>
|
2015-09-01 15:03:24 +08:00
|
|
|
$("#search_div").html('<%= escape_javascript( render :partial => 'resource_search_form',:locals => {:user=>@user,:type=>@type} ) %>');
|
2016-05-20 14:16:45 +08:00
|
|
|
$("#resource_tip_list").html('<%= escape_javascript( render :partial => 'users/user_resource_tip_list', :locals => {:user => @user, :type => @type, :status => @status}) %>');
|
2015-09-01 15:03:24 +08:00
|
|
|
$("#resources_list").html('<%= escape_javascript( render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments})%>');
|
2016-03-29 10:15:18 +08:00
|
|
|
$("#pages").html('<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true, :path => @path %>');
|
2016-05-20 14:16:45 +08:00
|
|
|
$("#user_resource_type_filter").html('<%= escape_javascript( render :partial => 'user_resource_type_filter' , :locals => {:user => @user, :type => @type, :status => @status}) %>');
|
|
|
|
$("#upload_private_resource").html('<%= escape_javascript( render :partial => 'show_new_upload' , :locals => {:user => @user, :type => @type, :status => @status}) %>');
|
2015-09-01 15:03:24 +08:00
|
|
|
$("#res_count").html(0);
|
|
|
|
$("#checkboxAll").attr('checked',false);
|
|
|
|
$("#res_all_count").html(<%= @atta_count%>);
|
2016-03-07 12:57:24 +08:00
|
|
|
<% if @ori and @ori.quotes.present? %>
|
|
|
|
$("#reference_number_<%= @ori.id %>").text("<%= @ori.quotes %>");
|
|
|
|
<% end %>
|
2015-12-29 17:13:01 +08:00
|
|
|
hideModal();
|
2016-03-07 12:57:24 +08:00
|
|
|
alert("发送成功");
|
2015-08-27 11:02:20 +08:00
|
|
|
<% else%>
|
|
|
|
<% end %>
|