1(function ($) { 2 3 "use strict"; 4 5 $('.pgcu-post-sortable__btn').each(function(id, elm){ 6 $(elm).on("click", function (e) { 7 e.preventDefault(); 8 var button = $(this), 9 data = { 10 'action': 'pgcu_sortable', 11 'id': $(this).attr('data-id'), 12 'term_id': $(this).attr('data-sortable-nav'), 13 'query': pgcu_ajax.query 14 }; 15 $(elm).closest('.pgcu-post-sortable__nav').siblings('.pgcu-row').addClass('pgcu-post-loading'); 16 $.ajax({ // you can also use $.post here 17 url: pgcu_ajax.ajaxurl, // AJAX handler 18 data: data, 19 type: 'POST', 20 success: function (data) { 21 $(elm).closest('.pgcu-post-sortable__nav').siblings('.pgcu-row').empty().append(data); 22 $(elm).siblings().removeClass('pgcu-post-sortable__btn--active'); 23 $(elm).addClass('pgcu-post-sortable__btn--active'); 24 $(elm).closest('.pgcu-post-sortable__nav').siblings('.pgcu-row').removeClass('pgcu-post-loading'); 25 } 26 }); 27 }); 28 }) 29 30})(jQuery);
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.