{"size": 926, "ext": "js", "max_stars_repo_path": "helpful.js", "max_stars_repo_name": "Getnudged/getnudged-helpful", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "helpful.js", "max_issues_repo_name": "Getnudged/getnudged-helpful", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "helpful.js", "max_forks_repo_name": "Getnudged/getnudged-helpful", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.5777777778, "max_line_length": 65, "alphanum_fraction": 0.6090712743}
jQuery( document ).on( 'click', '.helpful-button-y', function() {
	
	var post_id = jQuery(this).data('id');
	var user = jQuery(this).data('user');
	var stat = jQuery(this).data('stat');
	
	jQuery.ajax({
		url : helpfulajax.ajax_url,
		type : 'post',
		data : {
			action : 'helpful_ajax_form',
			post_id : post_id,
			user : user,
			stat : stat
		},
		success : function( response ) {
			jQuery('#helpful-content').html( response );
		}
	});

	return false;
})

jQuery( document ).on( 'click', '.helpful-button-n', function() {
	
	var post_id = jQuery(this).data('id');
	var user = jQuery(this).data('user');
	var stat = jQuery(this).data('stat');
	
	jQuery.ajax({
		url : helpfulajax.ajax_url,
		type : 'post',
		data : {
			action : 'helpful_ajax_form',
			post_id : post_id,
			user : user,
			stat : stat
		},
		success : function( response ) {
			jQuery('#helpful-content').html( response );
		}
	});

	return false;
})