diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt index a31c4bc0b7..240558a0c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt @@ -23,33 +23,60 @@ $(document).ready(function() { $('#tabs').tabs(); + // DataTables removes hidden rows from the DOM, so we can't expect a + // "regular" submit to work and we need to build another form containing + // all form elements, and then submit this form. + $('form').submit(function(e) { + e.preventDefault(); + + var form = $(this); + var table = form.find('table').dataTable(); + + var new_form = $('