1 jQuery(document).ready(function($){ 2 jQuery('.change_review_status').on('click', function(e){ 3 e.preventDefault(); 4 $this = jQuery(this); 5 var statuss, id; 6 statusss = $this.data("active"); 7 passivee = $this.data("passive"); 8 id = $this.data("id"); 9 info = []; 10 info[0] = id; 11 info[1] = statusss; 12 info[2] = passivee; 13 14 var formData = JSON.stringify(info); 15 16 jQuery.ajax({ 17 type: 'POST', 18 dataType: 'json', 19 url: ajax_approvereview_object.ajaxurl, 20 data: { 21 'action': 'listingpro_review_status', 22 'formData': formData, 23 }, 24 success: function(res){ 25 if(res.statuss="success"){ 26 var current = res.current_status; 27 var passive = res.passive_status; 28 29 $this.data('active', current); 30 $this.data('passive', passive); 31 $this.text(passive); 32 } 33 34 35 } 36 }); 37 }); 38 });
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.