Bug 30938: Convert ColumnSettings to TableSettings
To test: 1. Apply this patch 2. Go to /cgi-bin/koha/acqui/acqui-home.pl 3. The columns button should be restored, make sure you can hide/show columns correctly. 4. Go to Table settings and make sure you can hide columns properly by default. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
a999c66f48
commit
9b3e312223
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@
|
||||||
dt_overwrite_html_sorting_localeCompare();
|
dt_overwrite_html_sorting_localeCompare();
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var column_settings = [% TablesSettings.GetColumns( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %];
|
var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'acq_acqui-home', 'accounts', 'json' ) | $raw %];
|
||||||
var oTable = KohaTable("accounts", {
|
var oTable = KohaTable("accounts", {
|
||||||
"fnDrawCallback": function ( oSettings ) {
|
"fnDrawCallback": function ( oSettings ) {
|
||||||
if ( oSettings.aiDisplay.length == 0 )
|
if ( oSettings.aiDisplay.length == 0 )
|
||||||
|
@ -257,7 +257,7 @@
|
||||||
'aaSortingFixed': [[ 1, 'asc' ]],
|
'aaSortingFixed': [[ 1, 'asc' ]],
|
||||||
'bPaginate': false,
|
'bPaginate': false,
|
||||||
"bAutoWidth": false
|
"bAutoWidth": false
|
||||||
}, column_settings );
|
}, table_settings );
|
||||||
|
|
||||||
$(oTable).treetable({
|
$(oTable).treetable({
|
||||||
expandable: true
|
expandable: true
|
||||||
|
|
Loading…
Reference in a new issue