Fix bug.
This commit is contained in:
parent
becc66f769
commit
0c0e251cd0
|
@ -53,7 +53,7 @@ class Admin::JournalPapersController < OrbitMemberController
|
|||
end
|
||||
@writing_journals = @writing_journals.page(params[:page]).per(10)
|
||||
if request.xhr?
|
||||
render :partial => "writing_journal"
|
||||
render "index_js", :layout => false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ function MergeUrl(){
|
|||
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), admin_writing_journal_setting_path, :class => 'btn btn-primary pull-right' %>
|
||||
</div>
|
||||
<div class="pagination pagination-centered">
|
||||
<%= content_tag :div, paginate(@writing_journals), class: "pagination pagination-centered" %>
|
||||
<%= content_tag :div, paginate(@writing_journals), class: "pagination pagination-centered", id: "writing_journal_pagination" %>
|
||||
</div>
|
||||
</div>
|
||||
<% if params[:error] == "1" %>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
$("#sort_headers").html("<%= j render 'sort_headers' %>");
|
||||
$("#tbody_writing_journals").html("<%= j render :partial => 'writing_journal', :collection => @writing_journals %>");
|
||||
$("#writing_journal_pagination").html("<%= j paginate @writing_journals, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>");
|
|
@ -0,0 +1,4 @@
|
|||
<script>
|
||||
$("#tbody_writing_journals").html("<%= j render :partial => 'writing_journal', :collection => @writing_journals %>");
|
||||
$("#writing_journal_pagination").html("<%= j paginate @writing_journals, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>");
|
||||
</script>
|
Loading…
Reference in New Issue