var table;
$(document).ready(function(){
  table = $("#auditTable").DataTable({
    "paging":  true,
    "scrollX": true,
    "scrollY": false,
    "processing": true, 
    "serverSide": true, 
    "pageLength": 20, 
    "order": [],
    "ajax": {
      "url": CI_ROOT+'audit/getAudit',
      "type": "POST"
    },
    "columnDefs": [
      { 
        "targets": "_all",
        "orderable": false
      },
      {"targets":[0],"width":140},
      {"targets":[1],"width":140},
      {"targets":[2],"width":140},
      {"targets":[3],"width":80},
      {"targets":[4],"width":140},
      {"targets":[5],"width":80},
      {"targets":[6],"width":80},
      {"targets":[7],"width":80},
      {"targets":[8],"width":140},
    ],
    dom: 'Bfrtip',
    buttons: []
  });
});