mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
hmm...
This commit is contained in:
parent
2229e8793e
commit
6c0e6d1a51
1 changed files with 2 additions and 3 deletions
|
@ -2,9 +2,8 @@ $('#timeline').append('<% @timeline.each do |answer|
|
|||
%><%= j render 'shared/answerbox', a: answer
|
||||
%><% end %>');
|
||||
<% if @timeline.next_page %>
|
||||
var _p = $('#pagination');
|
||||
_p.replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
|
||||
_p.hide();
|
||||
$('#pagination').replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
|
||||
$('#pagination').hide();
|
||||
<% else %>
|
||||
$('#pagination, #load-more-btn').remove();
|
||||
<% end %>
|
Loading…
Reference in a new issue