this happens all the time

This commit is contained in:
Georg G 2015-02-12 22:10:50 +01:00
parent cb606f942a
commit 66c5e46a78

View file

@ -1,7 +1,7 @@
$('#entries').append('<% @inbox.each do |i| $('#entries').append('<% @inbox.each do |i|
%><%= j render 'inbox/entry', i: i %><%= j render 'inbox/entry', i: i
%><% end %>'); %><% end %>');
<% if @timeline.next_page %> <% if @inbox.next_page %>
$('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false %>'); $('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false %>');
<% else %> <% else %>
$('#pagination, #load-more-btn').remove(); $('#pagination, #load-more-btn').remove();