1jQuery(function ($) { 2 $('#countries').on('change', function () { 3 var catid = $(this).val(); 4 if (catid == "") { 5 $('#showRegion').hide(); 6 $('#showalladdresses').show(); 7 } else { 8 $('#subregion').trigger('change'); 9 } 10 $.ajax({ 11 url: the_ajax_script.ajaxurl, 12 dataType: "html", 13 data: { 14 category: catid, 15 action: 'getContactRegion' 16 }, 17 method: 'POST', 18 success: function (data) { 19 var $data = $(data); 20 if ($data.length) { 21 $("#subregion").html($data); 22 } 23 }, 24 error: function (error) { 25 console.log(error) 26 } 27 }); 28 return false; 29 }); 30 31 $('#subregion').on('change', function () { 32 var catid = $('#countries').val(); 33 var subcatid = $(this).val(); 34 $.ajax({ 35 url: the_ajax_script.ajaxurl, 36 dataType: "html", 37 data: { 38 category: catid, 39 subcategory: subcatid, 40 action: 'getContactAddresses' 41 }, 42 method: 'POST', 43 success: function (data) { 44 var $data = $(data); 45 if ($data.length) { 46 $("#showRegion").html($data); 47 $('#showRegion').show(); 48 $('#showalladdresses').hide(); 49 } 50 }, 51 error: function (error) { 52 console.log(error) 53 } 54 }); 55 return false; 56 }); 57});
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.