1jQuery(function($){ 2 3 $('body').on('click', '.kodex_buttons .kodex_button', function(e){ 4 e.preventDefault(); 5 6 var button = $(this); 7 var wrapper = button.parents('.kodex_buttons'); 8 //var buttons = wrapper.find('.cdx_button'); 9 var post_id = button.attr('data-id'); 10 var btn_action = button.attr('data-action'); 11 var nonce = wrapper.find('input[name="nonce"]').val(); 12 13 button.addClass('kodex_button_loading'); 14 var xhr = $.ajax({ 15 url : kodex_posts_likes.ajaxurl, 16 method : 'post', 17 data : { 18 action : 'kodex_posts_likes_ajax', 19 post_id : post_id, 20 nonce : nonce, 21 btn_action : btn_action 22 }, 23 success : function(response){ 24 button.removeClass('kodex_button_loading'); 25 var wrappers = $('.kodex_button[data-id="'+post_id+'"]').parents('.kodex_buttons').html(response); 26 } 27 }); 28 }); 29 30});
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.