1jQuery(document).ready(function($) { 2 3 $('#load-more-newsletters').on('click', function(){ 4 var button = $(this); 5 var offset = button.data('offset'); 6 var perPage = button.data('per-page'); 7 8 $.post(newsletter_ajax.ajax_url, { 9 action: 'load_more_newsletters', 10 offset: offset, 11 per_page: perPage 12 }, function(response){ 13 response = response.trim(); 14 15 if(response === '') { 16 button.hide(); 17 return; 18 } 19 20 $('#newsletter-list').append(response); 21 button.data('offset', offset + perPage); 22 23 if ($(response).filter('.newsletter-item').length < perPage) { 24 button.hide(); 25 } 26 }); 27 }); 28 29});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.