update show_follow JS to address changes

This commit is contained in:
pixeldesu 2015-07-24 17:14:42 +02:00
parent 6f65f8c9f4
commit 6ea04faf4f
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
$('#users').append('<% @users.each do |user| $('#users').append('<% @users.each do |user|
%><div class="col-sm-6"><%= j render 'shared/userbox', user: user %><div class="col-md-4 col-sm-6 col-xs-12"><%= j render 'shared/userbox', user: user
%></div><% end %>'); %></div><% end %>');
<% if @users.next_page %> <% if @users.next_page %>
$('#pagination').html('<%= j will_paginate @users, renderer: BootstrapPagination::Rails, page_links: false %>'); $('#pagination').html('<%= j will_paginate @users, renderer: BootstrapPagination::Rails, page_links: false %>');
<% else %> <% else %>
$('#pagination, #load-more-btn').remove(); $('#pagination, #load-more-btn').remove();
<% end %> <% end %>