{"size": 672, "ext": "js", "max_stars_repo_path": "assets/js/crud_district.js", "max_stars_repo_name": "raoultahin/aropa", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/js/crud_district.js", "max_issues_repo_name": "raoultahin/aropa", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/js/crud_district.js", "max_forks_repo_name": "raoultahin/aropa", "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": 35.3684210526, "max_line_length": 66, "alphanum_fraction": 0.5595238095}
/**
 * Created by Andriamalala Raoul on 10/08/2017.
 */
$(document).on('click', '.edit', function () {
        var id_district = $(this).attr('data-id');
        var nom_district = $(this).parent().prev().html();
        var code_district = $(this).parent().prev().prev().html();
        $('#id_district').val(id_district);
        $('#nom_district').val(nom_district);
        $('#code_district').val(code_district);
        $('#modif_district').modal('open');
    }
);
$(document).on('click', '.delete', function () {
        var id_district = $(this).attr('data-id');
        $('#id_district_del').val(id_district);
        $('#delete_district').modal('open');
    }
);