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 3c7e3449b5..2bb748d05c 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 @@ -248,7 +248,7 @@ .attr('action', form.attr('action')) .attr('method', form.attr('method')); form.find('input[type="hidden"]') - .add(table.$('input:checkbox:checked')) + .add( $('input:checkbox:checked', table) ) .each(function() { var input = $('') .attr('name', $(this).attr('name')) @@ -281,7 +281,7 @@ e.preventDefault(); var form = $(this).parents("form").first(); var table = form.find('table').dataTable(); - var ids = table.$("input:checkbox:checked"); + var ids = $("input:checkbox:checked", table); if ( $(ids).length < 1 ) { return false; } @@ -306,8 +306,8 @@ function enableCheckboxActions(form){ // Enable/disable controls if checkboxes are checked - var table = form.find('table').dataTable(); - var checked_count = table.$("input:checkbox:checked").length; + var table = form.find('table'); + var checked_count = $("input:checkbox:checked", table).length; if (checked_count) { if (checked_count == 1) { form.find(".selections").html(_("With selected search: "));