{"size": 759, "ext": "js", "max_stars_repo_path": "resources/js/manager/scripts.js", "max_stars_repo_name": "mobilestar920/jaemulsin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/manager/scripts.js", "max_issues_repo_name": "mobilestar920/jaemulsin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/manager/scripts.js", "max_forks_repo_name": "mobilestar920/jaemulsin", "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": 26.1724137931, "max_line_length": 83, "alphanum_fraction": 0.4993412385}
$(document).ready(function() {

    $('#dataTable').DataTable( {
        responsive: true
    } );

    $('#btn_new_resource').click(e => {
        
        $('#dlg_new_script').modal('show');
    })

    // $(".btn .btn-sm .btn-tumblr .btn_upload_file").click(e => {
    //     console.log('clicked');
        
    //     var resource_id = $this.attr("data-id");
    //     $('#resource_id').val(resource_id);
        
    //     $('#dlg_update_script').modal('show');
    // })

    $('#dataTable tbody').on("click", '.btn .btn-sm .btn-tumblr', function(event) {
        console.log('clicked');
        
        var resource_id = $(this).attr("data-id");
        $('#resource_id').val(resource_id);

        $('#dlg_update_script').modal('show');
    });
})