1jQuery(document).ready( function($) { 2 $('body').on('click', '.wpfp-link', function() { 3 dhis = $(this); 4 wpfp_do_js( dhis, 1 ); 5 // for favorite post listing page 6 if (dhis.hasClass('remove-parent')) { 7 dhis.parent("li").fadeOut(); 8 } 9 return false; 10 }); 11}); 12 13function wpfp_do_js( dhis, doAjax ) { 14 loadingImg = dhis.prev(); 15 loadingImg.show(); 16 beforeImg = dhis.prev().prev(); 17 beforeImg.hide(); 18 url = document.location.href.split('#')[0]; 19 params = dhis.attr('href').replace('?', '') + '&ajax=1'; 20 if ( doAjax ) { 21 jQuery.get(url, params, function(data) { 22 dhis.parent().html(data); 23 if(typeof wpfp_after_ajax == 'function') { 24 wpfp_after_ajax( dhis ); // use this like a wp action. 25 } 26 loadingImg.hide(); 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.