From 133090902f01d0b5af83091850dda75d13925506 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 12 Aug 2019 14:29:58 +0100 Subject: [PATCH] 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 --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index 4c36f4b104..d7740a018e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -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' ){ -- 2.39.5