hmm...
This commit is contained in:
parent
2229e8793e
commit
6c0e6d1a51
|
@ -2,9 +2,8 @@ $('#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 %>
|
||||||
var _p = $('#pagination');
|
$('#pagination').replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
|
||||||
_p.replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
|
$('#pagination').hide();
|
||||||
_p.hide();
|
|
||||||
<% else %>
|
<% else %>
|
||||||
$('#pagination, #load-more-btn').remove();
|
$('#pagination, #load-more-btn').remove();
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue