From df6b7045a67c63dcea68f1005fae6e507beca539 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Oct 2024 15:57:29 +0200 Subject: [PATCH] Bug 37945: Fix scroll on syspref page --- koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js index 608c916d640..c513055f381 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -208,13 +208,11 @@ function addConsentDeleteHandler() { }); } -$("table.preferences").dataTable( - $.extend(true, {}, dataTablesDefaults, { - dom: "t", - columnDefs: [{ targets: [-1], orderable: false, searchable: false }], - paging: false, - }) -); +$("table.preferences").dataTable({ + dom: "t", + columnDefs: [{ targets: [-1], orderable: false, searchable: false }], + paging: false, +}); $(".prefs-tab") .find("input.preference, textarea.preference") -- 2.34.1