Pagination fix

This commit is contained in:
Andreas Stephanides
2014-09-13 18:14:27 +02:00
parent 0658a8b423
commit 7a7128aa32
5 changed files with 13 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
$('#neuigkeiten').append('<%= j render @neuigkeiten, :locals => { :wrap_in => :li} %>');
$('#neuigkeiten').append('<%= j render @neuigkeiten, :wrap_in => :li %>');
<% if @neuigkeiten.next_page %>
$('.pagination').replaceWith('<%= j will_paginate @neuigkeiten %>');
<% else %>