alright this should do.

This commit is contained in:
nilsding 2014-12-08 14:22:11 +01:00
parent 6c0e6d1a51
commit bd16bd794d
1 changed files with 1 additions and 2 deletions

View File

@ -2,8 +2,7 @@ $('#timeline').append('<% @timeline.each do |answer|
%><%= j render 'shared/answerbox', a: answer %><%= j render 'shared/answerbox', a: answer
%><% end %>'); %><% end %>');
<% if @timeline.next_page %> <% if @timeline.next_page %>
$('#pagination').replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>'); $('#pagination').html('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
$('#pagination').hide();
<% else %> <% else %>
$('#pagination, #load-more-btn').remove(); $('#pagination, #load-more-btn').remove();
<% end %> <% end %>