Bug 27646: Allow export of Acquisition home and Funds tables
This patch swtiches these tables ot use KohaTables with exporting enabled To test: 1 - Apply patch 2 - Confirm acquisitions home and funds tables display correctly 3 - Confirm you can export the tables Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ee03841846
commit
1acbe07f0b
2 changed files with 6 additions and 6 deletions
|
@ -181,12 +181,13 @@
|
|||
[% INCLUDE 'datatables.inc' %]
|
||||
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
|
||||
[% Asset.js("js/acquisitions-menu.js") | $raw %]
|
||||
[% INCLUDE 'columns_settings.inc' %]
|
||||
<script>
|
||||
dt_overwrite_html_sorting_localeCompare();
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
var oTable = KohaTable("accounts", {
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
if ( oSettings.aiDisplay.length == 0 )
|
||||
{
|
||||
|
@ -221,12 +222,11 @@
|
|||
{ "bVisible": false, "aTargets": [ 0, 1 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
],
|
||||
'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
|
||||
'bSort': true,
|
||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||
'bPaginate': false,
|
||||
"bAutoWidth": false
|
||||
}));
|
||||
});
|
||||
|
||||
$(oTable).treetable({
|
||||
expandable: true
|
||||
|
|
|
@ -593,6 +593,7 @@
|
|||
</script>
|
||||
[% ELSIF op == 'list' %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
[% INCLUDE 'columns_settings.inc' %]
|
||||
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
|
||||
|
||||
<script>
|
||||
|
@ -600,7 +601,7 @@
|
|||
//
|
||||
$(document).ready(function() {
|
||||
[% IF budgets %]
|
||||
var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
var oTable = KohaTable("budgeth", {
|
||||
"fnDrawCallback": function ( oSettings ) {
|
||||
if ( oSettings.aiDisplay.length == 0 )
|
||||
{
|
||||
|
@ -635,12 +636,11 @@
|
|||
{ "bVisible": false, "aTargets": [ 0, 1 ] },
|
||||
{ "bSortable": false, "aTargets": ["_all"] }
|
||||
],
|
||||
'dom': '<"top pager"ilpf>tr<"bottom pager"ip>',
|
||||
'bSort': true,
|
||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||
'bPaginate': false,
|
||||
"bAutoWidth": false
|
||||
}));
|
||||
});
|
||||
|
||||
$(oTable).treetable({
|
||||
expandable: true
|
||||
|
|
Loading…
Reference in a new issue