{"size": 313, "ext": "js", "max_stars_repo_path": "EventSystem/public/js/delete-btn.js", "max_stars_repo_name": "node8/team", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "EventSystem/public/js/delete-btn.js", "max_issues_repo_name": "node8/team", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "EventSystem/public/js/delete-btn.js", "max_forks_repo_name": "node8/team", "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": 16.4736842105, "max_line_length": 44, "alphanum_fraction": 0.4408945687}
$(document).ready(function() {
  $('.delete-btn').on('click', function () {
    var $this = $(this);

    $.ajax({
      url: '/users',
      type: 'DELETE',
      data: {
        userId: $this.attr('user-data')
      },
      success: function() {
        window.location = "/users";
      }
    });
  });
});


