1jQuery(document).ready(function($) { 2 3 $('body').on('click','.searchbtn', function(e) { 4 passing_data($(this)); 5 return false; 6 }); 7 8 $('body').on('click','.pagievent', function(e) { 9 var pagenumber = $(this).attr('id'); 10 var formid = $('#curform').val(); 11 pagination_ajax(pagenumber, formid); 12 return false; 13 }); 14 15 $('body').on('keypress','.awpqsftext',function(e) { 16 if(e.keyCode == 13){ 17 e.preventDefault(); 18 passing_data($(this)); 19 } 20 }); 21 22 window.passing_data = function ($obj) { 23 24 var ajxdiv = $obj.closest("form").find("#jaxbtn").val(); 25 var res = {loader:$('<div />',{'class':'mloading'}),container : $(''+ajxdiv+'')}; 26 27 var getdata = $obj.closest("form").serialize(); 28 var pagenum = '1'; 29 30 jQuery.ajax({ 31 type: 'POST', 32 url: ajax.url, 33 data: ({action : 'awpqsf_ajax',getdata:getdata, pagenum:pagenum }), 34 beforeSend:function() {$(''+ajxdiv+'').empty();res.container.append(res.loader);}, 35 success: function(html) { 36 res.container.find(res.loader).remove(); 37 $(''+ajxdiv+'').html(html); 38 39 40 } 41 }); 42 43 } 44 45 window.pagination_ajax = function (pagenum, formid) { 46 var ajxdiv = $(''+formid+'').find("#jaxbtn").val(); 47 var res = {loader:$('<div />',{'class':'mloading'}),container : $(''+ajxdiv+'')}; 48 var getdata = $(''+formid+'').serialize(); 49 50 jQuery.ajax({ 51 type: 'POST', 52 url: ajax.url, 53 data: ({action : 'awpqsf_ajax',getdata:getdata, pagenum:pagenum }), 54 beforeSend:function() {$(''+ajxdiv+'').empty(); res.container.append(res.loader);}, 55 success: function(html) { 56 res.container.find(res.loader).remove(); 57 $(''+ajxdiv+'').html(html); 58 59 //res.container.find(res.loader).remove(); 60 } 61 }); 62 } 63 64 $('body').on('click', '.awpsfcheckall',function () { 65 66 $(this).closest('.togglecheck').find('input:checkbox').prop('checked', this.checked); 67 68 }); 69 70 71 72});//end of script
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.