update show_follow JS to address changes
This commit is contained in:
parent
6f65f8c9f4
commit
6ea04faf4f
|
@ -1,8 +1,8 @@
|
|||
$('#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 %>');
|
||||
<% if @users.next_page %>
|
||||
$('#pagination').html('<%= j will_paginate @users, renderer: BootstrapPagination::Rails, page_links: false %>');
|
||||
<% else %>
|
||||
$('#pagination, #load-more-btn').remove();
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue