$(document).ready( function () {
    $('#inspector-table').DataTable( {
        "ajax": '/PIMS/inspectors.json'
    });
} );
var showRender = function ( data, type, full, meta ) {
    return '<a href="./'+data+'/">Show</a>';
};

$(document).ready( function () {
    $('#inspector-table').DataTable( {
        "ajax": '/PIMS/inspectors.json',
        "columnDefs": [{
            "targets": 3,
            "render": showRender
          }]
    });
    
    $('#inspector-table').on( 'click', 'tbody tr', function () {
    	window.location.href = $(this).attr('href');
    } );
} );
copy to inspectors