Bug 38594: Fix table settings on the course reserves tables - OPAC
We are passing the columns settings, but KohaTable is expecting the table settings. Test plan: Hide some columns for the course reserves table at the OPAC Define a course, add 1+ items Go to the OPAC, "Course reserves" Notice that with this patch the columns are correctly hidden by default. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
4b82e00416
commit
41c718382c
|
|
@ -125,7 +125,7 @@
|
|||
[% INCLUDE 'columns_settings.inc' %]
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
columns_settings = [% TablesSettings.GetColumns( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
|
||||
table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
|
||||
KohaTable("#course-items-table", {
|
||||
"dom": '<"top"<"table_controls"f>>t',
|
||||
"sorting": [[ 1, "asc" ]],
|
||||
|
|
@ -139,7 +139,7 @@
|
|||
"columnDefs": [
|
||||
{ "className": 'dtr-control', "orderable": false, "targets": -1 },
|
||||
],
|
||||
}, columns_settings );
|
||||
}, table_settings );
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@
|
|||
[% INCLUDE 'columns_settings.inc' %]
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
columns_settings = [% TablesSettings.GetColumns( 'opac', 'course_list', 'course_reserves_table', 'json' ) | $raw %]
|
||||
table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_list', 'course_reserves_table', 'json' ) | $raw %]
|
||||
KohaTable("#course_reserves_table", {
|
||||
"dom": '<"top"<"table_controls"f>>rt<"clear">',
|
||||
"sorting": [[ 1, "asc" ]],
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
"cColumnDefs": [
|
||||
{ "className": 'dtr-control', "orderable": false, "targets": -1 },
|
||||
],
|
||||
}, columns_settings );
|
||||
}, table_settings );
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue