From 097e27f9cafc26725f76bc97d3530ee616daaa5e 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 Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- 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; }); });