Title: Github repo
Last modified: August 30, 2016

---

# Github repo

 *  [maxfenton](https://wordpress.org/support/users/maxfenton/)
 * (@maxfenton)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/github-repo-6/)
 * Is there a github repo I could make a pull request to?
 * In order to get AJAX working properly, I made changes to the wpfp.js file
 * \`
    jQuery(document).ready( function($) { $( document ).on( ‘click’, ‘.wpfp-link’,
   function() { var dhis = $(this); wpfp_do_js( dhis, 1 ); // for favorite post 
   listing page if (dhis.hasClass(‘remove-parent’)) { dhis.parent(“li”).fadeOut();}
   return false; }); });
 * function wpfp_do_js( dhis, doAjax ) {
    var loadingImg = dhis.prev(); loadingImg.
   removeClass(‘wpfp-hide’); var beforeImg = dhis.prev().prev(); beforeImg.addClass(‘
   wpfp-hide’); var url = document.location.href.split(‘#’)[0]; var params = dhis.
   attr(‘href’).replace(‘?’, ”) + ‘&ajax=1’;
 *  var WidgetRefresh = function () {
    $(“.wpfp-span”).parent().load(location.href
   +” .wpfp-span:first”,””); };
 *  if ( doAjax ) {
    jQuery.get(url, params, function(data) { dhis.parent().html(
   data); if(typeof wpfp_after_ajax == ‘function’) { wpfp_after_ajax( dhis ); //
   use this like a wp action. }
 *  beforeImg.removeClass(‘wpfp-hide’);
    WidgetRefresh(); } );
 *  }
    } `
 * [https://wordpress.org/plugins/wp-favorite-posts/](https://wordpress.org/plugins/wp-favorite-posts/)

The topic ‘Github repo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-favorite-posts.svg)
 * [WP Favorite Posts](https://wordpress.org/plugins/wp-favorite-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-favorite-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-favorite-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-favorite-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-favorite-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [maxfenton](https://wordpress.org/support/users/maxfenton/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/github-repo-6/)
 * Status: not resolved