Retrospring/app/views/user/show.js.erb

9 lines
348 B
Plaintext
Raw Normal View History

2014-12-08 06:23:04 -08:00
$('#answers').append('<% @answers.each do |a|
%><%= j render 'shared/answerbox', a: a
%><% end %>');
<% if @more_data_available %>
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id %>');
2014-12-08 06:23:04 -08:00
<% else %>
$('#pagination, #load-more-btn').remove();
<% end %>