Lines 197-208
Link Here
|
197 |
[% INCLUDE 'datatables.inc' %] |
197 |
[% INCLUDE 'datatables.inc' %] |
198 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
198 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
199 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
199 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
|
|
200 |
[% INCLUDE 'columns_settings.inc' %] |
200 |
<script> |
201 |
<script> |
201 |
dt_overwrite_html_sorting_localeCompare(); |
202 |
dt_overwrite_html_sorting_localeCompare(); |
202 |
|
203 |
|
203 |
$(document).ready(function() { |
204 |
$(document).ready(function() { |
204 |
|
205 |
|
205 |
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { |
206 |
var oTable = KohaTable("accounts", { |
206 |
"fnDrawCallback": function ( oSettings ) { |
207 |
"fnDrawCallback": function ( oSettings ) { |
207 |
if ( oSettings.aiDisplay.length == 0 ) |
208 |
if ( oSettings.aiDisplay.length == 0 ) |
208 |
{ |
209 |
{ |
Lines 237-248
Link Here
|
237 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
238 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
238 |
{ "bSortable": false, "aTargets": ["_all"] } |
239 |
{ "bSortable": false, "aTargets": ["_all"] } |
239 |
], |
240 |
], |
240 |
'dom': '<"top pager"ilpf>tr<"bottom pager"ip>', |
|
|
241 |
'bSort': true, |
241 |
'bSort': true, |
242 |
'aaSortingFixed': [[ 1, 'asc' ]], |
242 |
'aaSortingFixed': [[ 1, 'asc' ]], |
243 |
'bPaginate': false, |
243 |
'bPaginate': false, |
244 |
"bAutoWidth": false |
244 |
"bAutoWidth": false |
245 |
})); |
245 |
}); |
246 |
|
246 |
|
247 |
$(oTable).treetable({ |
247 |
$(oTable).treetable({ |
248 |
expandable: true |
248 |
expandable: true |