pagination bootstrap update layout

This commit is contained in:
2014-08-21 16:29:29 +05:30
committed by Andreas Stephanides
parent 753d4e212f
commit 1d00b07719
20 changed files with 129 additions and 54 deletions

View File

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