{"size": 791, "ext": "js", "max_stars_repo_path": "public/js/estado.js", "max_stars_repo_name": "cyberjos18/dgmtm", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/estado.js", "max_issues_repo_name": "cyberjos18/dgmtm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/estado.js", "max_forks_repo_name": "cyberjos18/dgmtm", "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": 21.3783783784, "max_line_length": 75, "alphanum_fraction": 0.391908976}
$(document).ready(function(){
   $(".link-eliminar").click(function () {
       var row=$(this).parents('tr');
       var id=row.data('id');
       var ob=confirm('Seguro que deseas eliminar?');

      if(ob==true) {

         $.ajaxSetup({
            headers: {
               'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
         });
         $.ajax({
            url: './centroEliminar',
            type: 'get',
            data: {'id': id},
            


            success: function (data) {
               alert(data.message);
               row.fadeOut();


            },
            error: function (e) {
               alert("No se pudo eliminar el registro: " + e);
               row.show();
            }

         })
      }
      });
   });

