Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.getJSON({
- url: recent_nodes_journey_thought_guide_path($.journey()),
- data: { offset: recentNodesCount },
- error: function(xhr) {
- $('#errorDisplay')
- .appendTo('Error: ' + xhr.status + ' ' + xhr.statusText);
- },
- success: function(responseBody) {
- $('.recent_nodes_more').remove();
- for (var i=0; i < responseBody.length; i++) {
- $('<li><a href="">' + responseBody[i] + '</a></li>')
- .appendTo($('.recent_nodes ul'));
- };
- $('<li><a href="" class="recent_nodes_more">More</a></li>')
- .appendTo($('.recent_nodes ul'));
- $('.recent_nodes_more').click(function() {
- $.moreRecentNodes();
- return false;
- });
- }
- });
Add Comment
Please, Sign In to add comment