diff --git a/APPL/Localscripts/resultset_table_v2.js b/APPL/Localscripts/resultset_table_v2.js index 24dbaf843e..900d5b4f70 100644 --- a/APPL/Localscripts/resultset_table_v2.js +++ b/APPL/Localscripts/resultset_table_v2.js @@ -45,7 +45,7 @@ function doFilter(deze) if (!found) $(this).find("input.multiselect").prop('checked', false); }); - toggleFooter.apply($("table.rstable")[0].id); + toggleFooter($("table.rstable")[0].id); if (typeof updateTableHeaders == 'function') updateTableHeaders(); window.lastFilter = valThis; @@ -82,6 +82,8 @@ $(document).ready(function() { function kliklist (doMulti) { $(this).closest("tr").toggleClass("selected", this.checked); + toggleFooter($(this).closest("table")[0].id); + if(!lastChecked) { lastChecked = this; return; @@ -98,7 +100,6 @@ $(document).ready(function() { .prop('checked', lastChecked.checked) .closest("tr").toggleClass("selected", lastChecked.checked); } - toggleFooter.apply($(this).closest("table")[0].id); lastChecked = this; } $(document).ready(function() { @@ -566,7 +567,7 @@ function checkAll(thisID, zelf) { this.checked = zelf.checked; }); - toggleFooter.apply(thisID); + toggleFooter(thisID); } function RSdefaultAction(thisID, defaultAction) {