新增和删除的时候数据联动bug

This commit is contained in:
lizanle 2015-11-13 15:04:50 +08:00
parent 28a6e09edd
commit 465bc9bd6c
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,6 @@
closeModal();
$("#resources_list").html('<%= escape_javascript( render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments})%>');
//这里不能将翻页的更新
$("#res_all_count").html(parseInt($("#res_all_count").html())+1);
$("#res_all_count").html('<%= @atta_count%>');
$("#res_count").html(0);
$("#checkboxAll").attr('checked',false);

View File

@ -1,2 +1,5 @@
$("#resources_list").html('<%= escape_javascript( render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments})%>');
$("#pages").html('<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
$("#pages").html('<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
$("#res_all_count").html('<%= @atta_count%>')
$("#res_count").html(0);
$("#checkboxAll").attr('checked',false);