From f06ff5df8432ca03163afb62217a098a903ab901 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Feb 2022 11:07:40 +0100 Subject: [PATCH] Bug 29893: Make sure the form will be submitted after the draw calls Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js index 4bc9225f01..730bf0e257 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js +++ b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js @@ -84,10 +84,9 @@ $(document).ready(function () { }); $("#es_mappings").on("submit", function(e){ - e.preventDefault(); $("#search_fields_table").DataTable().search('').draw(); $("#mapping_biblios_table").DataTable().search('').draw(); $("#mapping_authorities_table").DataTable().search('').draw(); - this.submit(); + return true; }); }); -- 2.30.2