From 5f7d5902aa4dfd91e3fa10f1ee8a2210d241cd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 23 Jul 2018 17:26:30 +0200 Subject: [PATCH] Infocenter Page now shows the number of filtered persons --- public/js/infocenter/infocenterPersonDataset.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/js/infocenter/infocenterPersonDataset.js b/public/js/infocenter/infocenterPersonDataset.js index 1b87d3333..2eb1eeb76 100644 --- a/public/js/infocenter/infocenterPersonDataset.js +++ b/public/js/infocenter/infocenterPersonDataset.js @@ -59,11 +59,19 @@ var InfocenterPersonDataset = { var persontext = personcount === 1 ? "Person" : "Personen"; var countHtml = personcount + " " + persontext; + // Count Records after Filtering + $("#filterTableDataset").bind("filterEnd", function() { + var cnt = $("#filterTableDataset tr:visible").length - 2; + $("#filterTableDatasetCntFiltered").html(cnt + ' / '); + }); + $("#datasetActionsTop, #datasetActionsBottom").append( "
"+ "
" + selectAllHtml + "  " + actionHtml + "
"+ "
" + legendHtml + "
"+ - "
" + countHtml + "
"+ + "
" + + "" + + countHtml + "
"+ "
"+ "
" );