Retrospring/app/views/group/index.js.erb

9 lines
361 B
Plaintext
Raw Normal View History

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