pagination bootstrap update layout
This commit is contained in:
7
app/views/rubriken/show.js.erb
Normal file
7
app/views/rubriken/show.js.erb
Normal 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 %>
|
||||
Reference in New Issue
Block a user