Lines 33-41
$(document).ready(function(){
Link Here
|
33 |
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { |
33 |
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { |
34 |
'sPaginationType': 'full_numbers', |
34 |
'sPaginationType': 'full_numbers', |
35 |
[% IF compareinv2barcd %] |
35 |
[% IF compareinv2barcd %] |
36 |
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ], |
36 |
// sort on callnumber |
|
|
37 |
"aaSorting": [[ 1, "asc" ]], |
37 |
[% ELSE %] |
38 |
[% ELSE %] |
38 |
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ], |
39 |
// first column contains checkboxes |
|
|
40 |
"aoColumnDefs": [ |
41 |
{ "bSortable": false, "bSearchable": false, "aTargets": [ 0 ] }, |
42 |
], |
43 |
// 3rd column is callnumber |
44 |
"aaSorting": [[ 2, "asc" ]], |
39 |
[% END %] |
45 |
[% END %] |
40 |
'fnDrawCallback': function() { |
46 |
'fnDrawCallback': function() { |
41 |
//bind the click handler script to the newly created elements held in the table |
47 |
//bind the click handler script to the newly created elements held in the table |
42 |
- |
|
|