From 66c5e46a78287e59da2b6bcdb577236548366b4b Mon Sep 17 00:00:00 2001 From: Georg G Date: Thu, 12 Feb 2015 22:10:50 +0100 Subject: [PATCH] this happens all the time --- app/views/inbox/show.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/inbox/show.js.erb b/app/views/inbox/show.js.erb index e2463c02..8c2e959e 100644 --- a/app/views/inbox/show.js.erb +++ b/app/views/inbox/show.js.erb @@ -1,7 +1,7 @@ $('#entries').append('<% @inbox.each do |i| %><%= j render 'inbox/entry', i: i %><% end %>'); -<% if @timeline.next_page %> +<% if @inbox.next_page %> $('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false %>'); <% else %> $('#pagination, #load-more-btn').remove();