Bug 29893: Make sure the form will be submitted after the draw calls
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 Feb 2022 10:07:40 +0000 (11:07 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 25 Mar 2022 00:22:09 +0000 (14:22 -1000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js

index 4bc9225..730bf0e 100644 (file)
@@ -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;
     });
 });