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

9 lines
360 B
Plaintext
Raw Normal View History

$('#questions').append('<% @questions.each do |q|
2015-07-25 10:48:27 -07:00
%><%= j render 'shared/question', q: q, type: nil
2014-12-19 13:34:24 -08:00
%><% end %>');
<% if @more_data_available %>
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id %>');
2014-12-19 13:34:24 -08:00
<% else %>
$('#pagination, #load-more-btn').remove();
2015-07-25 10:48:27 -07:00
<% end %>