diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index a4f76e8e11..8ca22ec199 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -16,7 +16,7 @@
[% END %] @@ -105,7 +105,7 @@ @@ -789,6 +789,8 @@ patron_search_form.on('submit', update_search_type); patron_search_form.on('submit', function(){ parent_block.find(".searchheader").show(); + // Disable the search button until results are returned and displayed + patron_search_form.find(".search_patron_filter_btn").prop({disabled: true}); }); @@ -911,6 +913,9 @@ } patrons_table.data('loaded_from_state', false); first_draw = 1; // Only redirect if we are coming from here + table_dt.on('draw.dt', function () { + patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); + }); table_dt.draw(); return false; } @@ -924,6 +929,7 @@ patron_search_form.find(".branchcode_filter option:first").prop("selected", true); patron_search_form.find("select[name='sort1_filter']").val('').trigger("change"); patron_search_form.find("select[name='sort2_filter']").val('').trigger("change"); + patron_search_form.find(".search_patron_filter_btn").prop({disabled: false}); parent_block.find(".firstletter_filter").val(''); patron_search_form.find(".search_patron_filter").val(''); [% IF adjust_history %]