Lines 181-192
Link Here
|
181 |
[% INCLUDE 'datatables.inc' %] |
181 |
[% INCLUDE 'datatables.inc' %] |
182 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
182 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
183 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
183 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
|
|
184 |
[% INCLUDE 'columns_settings.inc' %] |
184 |
<script> |
185 |
<script> |
185 |
dt_overwrite_html_sorting_localeCompare(); |
186 |
dt_overwrite_html_sorting_localeCompare(); |
186 |
|
187 |
|
187 |
$(document).ready(function() { |
188 |
$(document).ready(function() { |
188 |
|
189 |
|
189 |
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { |
190 |
var oTable = KohaTable("accounts", { |
190 |
"fnDrawCallback": function ( oSettings ) { |
191 |
"fnDrawCallback": function ( oSettings ) { |
191 |
if ( oSettings.aiDisplay.length == 0 ) |
192 |
if ( oSettings.aiDisplay.length == 0 ) |
192 |
{ |
193 |
{ |
Lines 221-232
Link Here
|
221 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
222 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
222 |
{ "bSortable": false, "aTargets": ["_all"] } |
223 |
{ "bSortable": false, "aTargets": ["_all"] } |
223 |
], |
224 |
], |
224 |
'dom': '<"top pager"ilpf>tr<"bottom pager"ip>', |
|
|
225 |
'bSort': true, |
225 |
'bSort': true, |
226 |
'aaSortingFixed': [[ 1, 'asc' ]], |
226 |
'aaSortingFixed': [[ 1, 'asc' ]], |
227 |
'bPaginate': false, |
227 |
'bPaginate': false, |
228 |
"bAutoWidth": false |
228 |
"bAutoWidth": false |
229 |
})); |
229 |
}); |
230 |
|
230 |
|
231 |
$(oTable).treetable({ |
231 |
$(oTable).treetable({ |
232 |
expandable: true |
232 |
expandable: true |