2015-08-20 17:38:30 +08:00
|
|
|
$("#resources_list").html('<%= escape_javascript( render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments})%>');
|
2016-03-15 09:26:26 +08:00
|
|
|
$("#resource_tip_list").html('<%= escape_javascript( render :partial => 'users/user_resource_tip_list', :locals => {:user => @user, :type => @type, :status => @status}) %>');
|
2015-08-29 11:58:44 +08:00
|
|
|
$("#pages").html('<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
|
2015-09-06 15:16:32 +08:00
|
|
|
$("#res_all_count").html(<%= @atta_count%>);
|
|
|
|
$("#res_count").html(0);
|
2016-03-15 09:26:26 +08:00
|
|
|
$("#checkboxAll").attr('checked',false);
|
|
|
|
//更新状态
|
2016-03-15 15:42:20 +08:00
|
|
|
$("#public_resource_list").attr('href','<%= user_resource_user_path(@user, :type => '6') %>');
|
|
|
|
$("#my_resource_list").attr('href','<%= user_resource_user_path(@user, :type => '1') %>');
|
|
|
|
$("#resource_type_all").attr('href','<%= resource_search_user_path(@user,:type => @type, :status => 1, :search => @switch_search) %>');
|
|
|
|
$("#resource_type_course").attr('href','<%= resource_search_user_path(@user,:type => @type, :status => 2, :search => @switch_search) %>');
|
|
|
|
$("#resource_type_project").attr('href','<%= resource_search_user_path(@user,:type => @type, :status => 3, :search => @switch_search) %>');
|
|
|
|
$("#resource_type_user").attr('href','<%= resource_search_user_path(@user,:type => @type, :status => 5, :search => @switch_search) %>');
|
|
|
|
$("#resource_type_file").attr('href','<%= resource_search_user_path(@user,:type => @type, :status => 4, :search => @switch_search) %>');
|