Bug 23307: (RM follow-up) Fix breaking change to columns_settings.inc

The changes to columns_settings.inc in bug 23307 inadvertantly change
the return from an updated jQuery datatable object to a plain jQuery
object and as such broke a number of tables in Koha.  This patch simply
reverts the change whilst continuing to allow the new functionality to
work as expeced.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2019-08-12 14:29:58 +01:00
parent dfb7af91af
commit 133090902f
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -102,7 +102,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
thead_row.before(clone);
}
table.DataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
table.dataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
table.DataTable().on("column-visibility.dt", function(){
if( typeof columnsInit == 'function' ){