{"size": 768, "ext": "js", "max_stars_repo_path": "templates/web/bookingCheckIn.js", "max_stars_repo_name": "nametea001/gg_hotel", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "templates/web/bookingCheckIn.js", "max_issues_repo_name": "nametea001/gg_hotel", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "templates/web/bookingCheckIn.js", "max_forks_repo_name": "nametea001/gg_hotel", "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": 22.5882352941, "max_line_length": 51, "alphanum_fraction": 0.5065104167}
$(function () {
    $('#my-data-table').DataTable({
        "order": [[0, "desc"]],
        "scrollX": true
    });
    $('#searchCheckInDate').datepicker({
        format: 'yyyy-mm-dd'
    });
});


function ConfrimChekIn(event) {
    let item = event.currentTarget.name;
    console.log(item);
    var obj = JSON.parse(item);
    $("#bookingId").val(obj.id);
    $("#bookingDetailId").val(obj.book_detail_id);
    $("#roomNumber").text(obj.room_number);
}

$(document).on(
    "click",
    "#confirmBt",
    (event) => {
        let id = event.currentTarget.id;
        switch (id) {
            case "confirmBt":
                ConfrimChekIn(event);
                break;
            default:
                console.log("no any events click");
        }
    }
);