@@ -, +, @@ - After the patron search results are displayed, test the "Select all" control. The visible search results should all be checked, and the "Patrons selected" counter at the top should be incremented correctly. - Clicking the "Select all" control again should have no effect. The "Patrons selected" counter should not increment again. - Test the "Clear all" control to confirm that checkboxes are unchecked and the counter updates correctly. - Test with multiple pages of patron search results to confirm that the controls work correctly on any page of results.. --- .../intranet-tmpl/prog/en/modules/members/member.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -252,11 +252,19 @@ $("#select_all").on("click",function(e){ e.preventDefault(); - $(".selection").prop("checked", true).change(); + $(".selection").each(function(){ + if( $(this).prop("checked") == false ){ + $(this).prop( "checked", true ).change(); + } + }); }); $("#clear_all").on("click",function(e){ e.preventDefault(); - $(".selection").prop("checked", false).change(); + $(".selection").each(function(){ + if( $(this).prop("checked") ){ + $(this).prop("checked", false ).change(); + } + }); }); [% IF searchmember %] --