From e94b3352a45a5657c586f1863eb4d79eef2d1266 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 3 Nov 2021 16:29:21 +0000 Subject: [PATCH] Bug 29408: Rename Koha dataTables wrapper This patch renames the Koha REST JS dataTables wrapper from the ambigious 'api' to the clearer 'kohaTable'. Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 16c4e89584..09d1a0e3df 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -517,7 +517,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { (function($) { - $.fn.api = function(options, columns_settings, add_filters, default_filters) { + $.fn.kohaTable = function(options, columns_settings, add_filters, default_filters) { var settings = null; if ( add_filters ) { -- 2.30.2