From b508c4a14ce01125394563f3bd17d49132d2dbef Mon Sep 17 00:00:00 2001 From: user Date: Mon, 16 Oct 2023 18:40:40 +0200 Subject: [PATCH] added new function for general count of fields #1247 --- dataedit/static/peer_review/opr_reviewer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dataedit/static/peer_review/opr_reviewer.js b/dataedit/static/peer_review/opr_reviewer.js index d9bf5b5ac..5789a58d5 100644 --- a/dataedit/static/peer_review/opr_reviewer.js +++ b/dataedit/static/peer_review/opr_reviewer.js @@ -878,6 +878,12 @@ window.addEventListener('DOMContentLoaded', function() { updatePercentageDisplay() ; }); +function getTotalFieldCount() { + var allFields = makeFieldList(); + return allFields.length; +} + + function calculateOkPercentage(stateDict) { let totalCount = Object.keys(stateDict).length; let okCount = 0;