@@ -, +, @@ only selects the first 20 entries - View a patron list - If necessary, add multiple patrons to the list so that the number exceeds 20. - Change the number of entries shown by the DataTable: Show [ 50 ] entries. - Click "Select all." All visible checkboxes should be checked. - Click "Clear all." All checkboxes should be unchecked. --- .../intranet-tmpl/prog/en/modules/patron_lists/list.tt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt @@ -219,17 +219,15 @@ patron_input_name: 'patrons_to_add' }); - var checkBoxes = $("input[type='checkbox']","#patron-list-table"); - - $("#CheckAll").click(function(e){ + $("body").on("click", "#CheckAll", function(e){ e.preventDefault(); - checkBoxes.each(function(){ + $("input[type='checkbox']","#patron-list-table").each(function(){ $(this).prop("checked",1); }); }); - $("#CheckNone").click(function(e){ + $("body").on("click", "#CheckNone", function(e){ e.preventDefault(); - checkBoxes.each(function(){ + $("input[type='checkbox']","#patron-list-table").each(function(){ $(this).prop("checked",0); }); }); --