Guest User

Untitled

a guest
Apr 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $.getJSON(recent_nodes_journey_thought_guide_path($.journey()), {
  2. data: { offset: recentNodesCount },
  3. },
  4. function(responseBody) {
  5. $('.recent_nodes_more').remove();
  6. for (var i=0; i < responseBody.length; i++) {
  7. $('<li><a href="">' + responseBody[i] + '</a></li>')
  8. .appendTo($('.recent_nodes ul'));
  9.  
  10. };
  11. $('<li><a href="" class="recent_nodes_more">More</a></li>')
  12. .appendTo($('.recent_nodes ul'));
  13. $('.recent_nodes_more').click(function() {
  14. $.moreRecentNodes();
  15. return false;
  16. });
  17. }
  18. );
Add Comment
Please, Sign In to add comment