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

9 lines
373 B
Plaintext
Raw Normal View History

2015-01-03 10:24:51 -08:00
$('#answers').append('<% @answers.each do |answer|
2020-04-26 08:13:31 -07:00
%><%= j render 'answerbox', a: answer, show_question: false
2015-01-03 10:24:51 -08:00
%><% end %>');
<% if @more_data_available %>
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id %>');
2015-01-03 10:24:51 -08:00
<% else %>
$('#pagination, #load-more-btn').remove();
<% end %>