From bd16bd794d2d237f2171d194b22a7f46ac8f9db3 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 8 Dec 2014 14:22:11 +0100 Subject: [PATCH] alright this should do. --- app/views/static/index.js.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/static/index.js.erb b/app/views/static/index.js.erb index f13fa460..9ce16da7 100644 --- a/app/views/static/index.js.erb +++ b/app/views/static/index.js.erb @@ -2,8 +2,7 @@ $('#timeline').append('<% @timeline.each do |answer| %><%= j render 'shared/answerbox', a: answer %><% end %>'); <% if @timeline.next_page %> - $('#pagination').replaceWith('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>'); - $('#pagination').hide(); + $('#pagination').html('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>'); <% else %> $('#pagination, #load-more-btn').remove(); <% end %> \ No newline at end of file